Error in setwd(***) : cannot change working directory
目录
Error in setwd(***) : cannot change working directory
问题:
#没有这个目录不报错就见鬼了
别的可能的原因包括:
- 只是拼错了文件路径。
- 在文件路径中包含了无效字符。
- 没有访问文件路径的权限。
#attempt to set working directory
setwd("C:/Users/cc/dd/eee")
解决:
#找一个靠谱的现实存在的目录
#set working directory
setwd("C:/Users/user/test/r_file")
#get current working directory
getwd()
C:/Users/user/test/r_file
完整错误:
> #attempt to set working directory
> setwd("C:/Users/cc/dd/eee")
Error in setwd("C:/Users/cc/dd/eee") : cannot change working directory
>