我尝试自定义我的RStudio启动环境,所以我编辑了etc /目录下的 Rprofile.site 文件,当我启动时它出错了。
Rprofile.site 的代码如下所示:
.First<-function(){
library(lattice)
source("H:/data")
#cat("\nWelcome at ",date(),"\n")
}
.Last<-function(){
cat("\nGoodbye at ",date(),"\n")
}
错误如下:
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'H:/data': Permission denied
感谢您的任何帮助。