[R] Working directory

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue May 22 21:36:55 CEST 2012



On 22.05.2012 20:28, jalanthomas at verizon.net wrote:
> I am not experienced at R but have searched the manuals. . . .
>
> I have tried placing a setwd command in the Rprofile.site and Rprofile files.  But it does not seem to work.  It always reverts to a particular directory I have been using (saved in workspace image?) for a while.  However, I can print out text from thr Rprofile files!
>
> Could this be an issue with confilcts between my workspace/ session and my startup files?

Works for me.

I guess you either specified an invalid directory or you do not have 
permissions to change to it or you overwrite the setting later on in 
another startup file?
What is your actual call? Does it work in an interactive R session?


> I am running R version 2.13.1 on Windows 7.

... which is outdated. I tested on R-release.

Uwe Ligges



> Thanks, Alan
>
>
> 	[[alternative HTML version deleted]]
>
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.



More information about the R-help mailing list