[R] set working directory

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jun 18 14:05:25 CEST 2004


Bashir Saghir (Aztek Global) wrote:

> Try adding a missing singe quote (') at the end of your working directory.
> 
> setwd('d:/folder_name')  

Well, that was a mispelling in the mail, but not in the real example, 
since not specifying the quote causes a syntax error.

I'm quite sure the folder-name was misspelled in the real example.....

Uwe Ligges


> S.
> 
> 
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Louize Hill
> Sent: Friday, June 18, 2004 13:38
> To: r-help at stat.math.ethz.ch
> Subject: [R] set working directory
> 
> 
> I have just upgraded from rw1081 to rw1090 (using Windows 2000).
> 
> Now when I type the command:
> 
> 
>>setwd('d:/folder_name)
> 
> 
> I get the following error message:
> 
> Error in setwd(dir) : cannot change working directory
> 
> If I use the "change dir" tab in the file menu i can sucessfully change
> working directories, but this is not so convenient as i have my whole model
> stored as a text file that I prefer to copy into R.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
> 
> 
> --------------------------------------------------------- 
> Legal Notice: This electronic mail and its attachments are i...{{dropped}}
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list