Why does R start in wrong working directory despite R_USER setting?
Assuming you are using the GUI you can use the Properties of the shortcut to tell R where to start.
On 07/08/2015 17:31, Mauricio Cornejo via R-help wrote:
Hi After launching newly-installed R 3.2.1 (on Windows 7), I run the following two commands:
getwd()[1] "C:/ProgramData/Microsoft/Windows/Start Menu/Programs/R"
Sys.getenv('R_USER')[1] "C:\\Users\\<my username>\\Documents"
I would like the startup working directory to be that pointed to by R_USER. I don't have administrative access to the machine. Many thanks for any insight anyone can provide. Mauricio [[alternative HTML version deleted]]
______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.