[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:
>
>
>>setwd('C:\BACC_R')
>
> Error in setwd(dir) : cannot change working directory
>
> I would really appreciate your help,
> Joan Serra
>
Hi Joan,
Please review the following:
http://cran.r-project.org/bin/windows/rw-FAQ.html
In rw-FAQ 4.1 it says:
<quote>
4.1 What should I expect to behave differently from the Unix version of R?
<snip>
Paths to files (e.g. in source()) can be specified with either "/" or "\\".
</quote>
Try setwd('C:/BACC_R') or setwd('C:\\BACC_R').
--sundar
More information about the R-help
mailing list