第一次加载需要库时出错

时间:2018-04-25 13:24:59

标签: r r-library

我在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

0 个答案:

没有答案