无法在 Windows 7 上更新默认库中的 R 包 [英] Unable to update R packages in default library on Windows 7

查看:66
本文介绍了无法在 Windows 7 上更新默认库中的 R 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 update.packages 更新 RGui(64 位)上的软件包,但收到以下消息:

I'm trying to update packages on RGui (64-bit) using update.packages but I'm getting the following message:

Warning in install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  :
  'lib = "C:/PROGRA~1/R/R-212~1.1/library"' is not writable
Error in install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  : 
  unable to install packages

我在资源管理器中查看了库文件夹,它已设置为只读,因此我将其删除.但是,当我执行此操作后立即再次检查属性时,它会重新出现.安装新软件包不受影响,因为它们在我的用户配置文件中有一个单独的文件夹.

I've looked at the library folder in Explorer and it has read only set, so I removed it. However, it reappears when I check the properties again immediately after doing this. Installing new packages is unaffected since they have a separate folder in my user profile.

有什么技巧可以让它发挥作用吗?

Is there a trick to getting this to work?

推荐答案

通常您需要管理员权限才能更改程序文件中的内容.尝试以管理员身份运行 RGui.

Usually you need administrator rights to change things in program files. Try running RGui as administrator.

这篇关于无法在 Windows 7 上更新默认库中的 R 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆