我在R中安装了软件包“needs”,我第一次尝试加载它。
加载时,我试图在提示我想要need()安装并附加运行脚本时所需的任何软件包时同意。但是,R抛出错误。你能帮忙吗?
> library(needs)
Should `needs` load itself when it's... needed?
(this is recommended)
1: No
2: Yes
Selection: 2
Error: package or namespace load failed for ‘needs’:
.onLoad failed in loadNamespace() for 'needs', details:
call: file(file, ifelse(append, "a", "w"))
error: cannot open the connection
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file 'C:/PROGRA~1/R/R-34~1.4/etc/Rprofile.site': Permission denied