Thanks for reporting this and what version of RStudio are you
using and on what platform? Do you see this in .R files, .Rnw
files, or even all file types that you are using? We have not heard
of this before, but would definitely like to get to the bottom of
3 Posted by Manuela Gonzalez on 16 Aug, 2011 11:45 AM
Sorry for not mentioning all those details before.
I am using Rstudio version 0.94.92, on Windows 7 Home Premium 64
Service Pack 1. I have R version 2.11.1 for 64 bits.
I only use .R files and it happens with all files I have used (some
had been created before using TinnR, others I started in
Let me know if there are other details that could be helpful
5 Posted by Manuela Gonzalez on 16 Aug, 2011 02:33 PM
Showing the problem in a screenshot may be tricky as the issue
is that area where I point with the mouse pointer does not always
correspond to the area where the cursor is placed.
Maybe an example would help. The issue is similar to if in this
text box I placed the mouse pointer over the word "always" above
but the cursor jumped to the word "problem". I haven't observed a
pattern of where the cursor will "jump to" (not always above or
left) but generally it seems harder to point at code further from
the line numbers on the left side of the screen.
As I mentioned other people at my work place are having similar
problems, I can ask about their operating system if that helps.
I understand it might be complicated to show this, but even a
overview of your setup will help. Also possible, but not necessary,
you could enumerate where you clicked and where the cursor showed
up in paint. Again not necessary and a general screenshot would
Thanks and can you also take a quick screenshot so we can see
what your environment looks like. No worries if it is hard to show
exactly what is going wrong. You should be able to upload the
screenshot directly to this discussion.
I have noticed the same problem. After having RStudio open for
some time, at some point (not sure if it's because of something
I've done inadvertently) when I try to click with the mouse to
alter code in a .R file, the cursor in the file appears in the line
above where I'm trying to click. The problem goes away when I
In the attached screen shot, my mouse pointer doesn't show up,
but I had tried to click on the word "drop" on the line below where
the cursor is located.
I am using RStudio 0.94.92 with R version 2.13.1 in Windows XP
Home Edition 2002 with Service Pack 3.
Please let me know if i can provide you with any more
If you are seeing VERTICAL offset problems that occur
only sometime after using RStudio for a while, we don't
specifically have a fix yet, but have added a diagnostic feature
that should help us get to the bottom of this. The next time you
encounter this problem:
Make sure that the document that's having the problem is the
Do Help | Diagnostics | Dump Editor Contents from
the main menu
Press Ctrl+A (or Command+A on Mac) to
select the entire contents of the textbox
Paste the contents into an e-mail
Attach a screenshot of the displaced cursor, to the e-mail
Send the e-mail to joe at rstudio dot org with a note that you
are experiencing the vertical offset problem
The diagnostic info here is the raw contents of your
editor's buffer, so if you are not willing to share your code,
please don't send it. Hopefully there are enough of you that
are willing to send your code, that we can get this figured out and
If you are having a HORIZONTAL offset on the same line
or a different problem, then feel free to add a comment or
start a new thread.
We're so sorry for this annoying bug and for how long it is
taking us to figure it out. We continue to not be able to repro it
in-house which is why we have to ask you to go to such lengths to
gather data for us.
19 Posted by Katya Ognyanova on 25 Feb, 2012 09:19 AM
Josh, thank you for the quick reply. I'm using RStudio 0.95.261 on a 64
bit Windows 7 machine. The problem is indeed a vertical rather than a
horizontal offset of the mouse pointer. Sometimes this gets resolved if
I switch between syntax tabs.
I haven't been doing much work with R in the last day or two - once I go
back to that next week I will be sure to send a screenshot along with
I have tried with all version of Rstudio but the horizontal offset
in the same line still occurs . I tried to remove and reinstall
both R and Rstudio but it does not helps.
I copied the " Dump Editor Contents" hope that you can help to
figure out the prolems . I currently using Window SP 2.
Thank for your helps