Hi everyone, When I open RStudio 1.2.1335 with R version 3.6.1, I get an error message error: '\R' is an unrecognized escape in character string starting ""c:\R".
There already was someone with the same error in this post: Directory error at start up but I don't understand the solution and can't reach that user to clarify. Can someone help me out on this?
Extra info:
starting up Rstudio without doing anything results in this error:
and have the following setup in Rstudio:
The solution reported by that user involves modifying keyboard shortcuts in RStudio. You can check whether you have the same issue by going to Tools -> Modify Keyboard Shortcuts and selecting the Customized radio button.
If you have modified the keyboard shortcut for Run Current Line or Selection, it should show up here. You can then reset it to the RStudio default and see if that fixes the problem.
Thanks for the reply: it does not seem that I modified these shortcuts, and when resetting these settings to default (just for trying it out) sadly it does not solve the error. I usually go with the setwd() within each project/Rmarkdown file, so I don't completely understand where this error comes from.
Any ideas?
No, I don't have that option checked. I just came across a unexpected error when updating packages, and it seems to be caused by the default work directory:
Thanks for the bug report -- this sounds similar to this issue.
We're hoping to have a fix for this in RStudio v1.3. As a workaround you can try the following:
For what it's worth, I believe one workaround would be to set R_USER to the same server path (as UNC), but with different casing -- e.g. with the server name capitalized. (This affects how RStudio tries to perform tilde expansion / path aliasing, which I believe is the root cause of the issue here)