I have my R installed in C:\R\R-3.3.0
. But:
> R.home()
[1] "C:/R/R-33~1.0"
> Sys.getenv("R_HOME")
[1] "C:/R/R-33~1.0"
I think both should be "C:/R/R-3.3.0"
as I have quite a lot of trouble when using the debugger: It just does not find the libraries!
As I am on Windows, I read this in the documentation, but it did not help:
On Windows the values of R.home() and R_HOME are switched to the 8.3 short form of path elements if required and if the Windows service to do that is enabled. The value of R_HOME is set to use forward slashes (since many package maintainers pass it unquoted to shells, for example in ‘Makefile’s).
Help is higly appreciated, because my knowledge about environment variables is tiny.