Error: unexpected input in ""
Hi there, I am using now Rstudio for several weeks and I must say I really like it. But time to time I got strange bug. When I run command from editor or directly from console , it doesn't execute and I have this message Error: unexpected input in "" If I copy and paste the same command after it works. Do you have idea what it could be? Thanks a lot. Milan
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Josh Paulson on 08 Apr, 2011 04:46 PM
Sounds like there is an unrecognized character in there somewhere (for example a curly quote rather than a straight quote). Can you copy and paste the command into this discussion? What operating system is this on and what version of R are you running.
Also how are you entering your commands into RStudio (specifically this one that gave you an issue)? Are you simply typing them all in by hand or do you also copy and paste some text from other editors, websites, programs, etc. If so, what are they?
Josh
3 Posted by Milan on 11 Apr, 2011 02:19 PM
Hi Josh,
I am running Mac OS X 10.6.7 and R 2.12.1.
This happen completely randomly. Even if the command is typed directly in the console. I will send you example when it happen next time. I was wondering if someone other reported similar problem. I went though the forum but I did not find anything. Thanks.
Milan
Support Staff 4 Posted by Josh Paulson on 11 Apr, 2011 04:40 PM
Milan,
Thanks for the update and and definitely let us know if it happens again. We have seen this minimally, but it was always a quick fix (copied unreadable characters from a web page, etc) For example Wordpress uses curly quotes and coping code from there resulted in some issue in our previous release. We have fixed all of the related issues and now you just need to change from the curly quote to normal ones.
Here was that discussion if you were interested:
http://support.rstudio.org/help/discussions/problems/230-editor-doe...
Again, let us know if you see this and I will close the discussion for now, but open it back up if something comes up. I have also noted this for us to look into later.
Thanks,
Josh
Josh Paulson closed this discussion on 11 Apr, 2011 04:40 PM.
milan re-opened this discussion on 19 Apr, 2011 10:53 AM
5 Posted by milan on 19 Apr, 2011 10:53 AM
Hi Josh,
I am sending you example of the error we talked last time. I wanted to print all values from dataframe msd_two, variable condition. I typed it directly in the console and I used tab to complete variable name. And this does not work. I have to copy paste the command from console into console and then it works. And it is exactly the same command. Thanks for help.
Milan
Support Staff 6 Posted by Josh Paulson on 20 Apr, 2011 02:26 PM
Milan,
What version of RStudio do you have? We might have actually fixed this issue just recently. The latest on the website is 0.93.84 and you can download it from our main webpage:
http://www.rstudio.org/download/desktop
Let me know what version you've got and then try upgrading if you haven't already.
Josh
7 Posted by Milan on 20 Apr, 2011 02:52 PM
Hi Josh,
actually yesterday I found that the update mechanism does not work. It told me all the time that I have the newest version, but I had the old version. I downloaded the latest version and since then the problem does not appear again.
Now I have version 0.93.83. Does the update in this version works or do I have to check
on your site if new version is available?
Thanks a lot.
Milan
Support Staff 8 Posted by Josh Paulson on 20 Apr, 2011 03:02 PM
Milan,
Great and glad to hear. The update mechanism actually works for both version, but we specifically told it not to inform users yet. We released, but didn't sent the notification of an update as we wanted to work out a few bugs before having everyone install the new version. We will actually be rolling this very soon to the current version of which you just downloaded.
Thanks and let us know if anything else comes up,
Josh
Josh Paulson closed this discussion on 20 Apr, 2011 03:02 PM.