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,> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > > 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 directoryHave you tried: setwd("C:/BACC_R") Or setwd("C:\\BACC_R") HTH Kevin -------------------------------------------- Ko-Kang Kevin Wang, MSc(Hon) SLC Stats Workshops Co-ordinator The University of Auckland New Zealand
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