1

我在 R 中安装了“需要”包,并尝试第一次加载它。

加载它时,当提示我希望需要()安装并附加运行脚本时所需的任何包时,我尝试同意。但是,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
4

0 回答 0