On May 12, 2008, at 10:53 AM, Grant, Mark D. wrote:

In 2.7.0 I am getting an error with setwd not encountered in 2.6.2


setwd("/Users/markgrant/Documents/_projects/genetic/r")

gives

Error in setwd("/Users/markgrant/Documents/_projects/genetic/r") :
  cannot change working directory

However, I can change the working directory from the GUI


Not really except that the path may not be correct (I'm not sure what you mean "from the GUI" - I'm assuming you mean the interactive choice) or you're running the GUI as a different user than the command line. Try looking at the permissions - e.g. to the very least try
ls -l /Users/markgrant/Documents/_projects/genetic/r
and if that fails, you know it's wrong and/or you don't have the permissions and you probably want to go up along the directory structure to find out why(e.g. Document has usually very restrictive permissions).

Cheers,
Simon

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to