[R] setwd problems

Sundar Dorai-Raj sundar.dorai-raj at PDF.COM
Mon Jun 21 21:44:17 CEST 2004

Joan Serra wrote:

> Hello,
> I am using R for Windows and I receive error messages when trying to
> change my working directory:
> Error in setwd(dir) : cannot change working directory
> I would really appreciate your help,
> Joan Serra

Hi Joan,

Please review the following:


In rw-FAQ 4.1 it says:

4.1 What should I expect to behave differently from the Unix version of R?
Paths to files (e.g. in source()) can be specified with either "/" or "\\".

Try setwd('C:/BACC_R') or setwd('C:\\BACC_R').


More information about the R-help mailing list