【发布时间】:2014-10-26 07:48:19
【问题描述】:
请帮帮我,我无法安装“MASS”包。
> library(MASS)
Error in library(MASS) : there is no package called ‘MASS’
我尝试从本地安装 MASS 包:
> utils:::menuInstallLocal()
package ‘MASS’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘MASS’
即使我无法删除“MASS”:
> remove.packages("MASS")
Removing package from ‘C:/Program Files/R/R-3.0.1/library’
(as ‘lib’ is unspecified)
Error in find.package(pkgs, lib) : there is no package called ‘MASS’
使用这个选项我也无法安装包:
> options(install.lock=T)
> utils:::menuInstallLocal()
package ‘MASS’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘MASS’
Warning: restored ‘MASS’
Warning message:
In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\Program Files\R\R-3.0.1\library\00LOCK\MASS\libs\x64\MASS.dll to C:\Program Files\R\R-3.0.1\library\MASS\libs\x64\MASS.dll: Permission
还有 install.packages:
> install.packages("C:\\MASS_7.3-35.zip",repos=NULL)
package ‘MASS’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘MASS’
Warning: restored ‘MASS’
Warning message:
In file.copy(savedcopy, lib, recursive = TRUE) :
problem copying C:\Program Files\R\R-3.0.1\library\00LOCK\MASS\libs\x64\MASS.dll to C:\Program Files\R\R-3.0.1\library\MASS\libs\x64\MASS.dll: Permission
我应该提到我将 R 与 ORE(Oracle R Enterprise)一起使用。
【问题讨论】:
-
你为什么不使用通常的方式,即
install.packages("MASS", dependencies=TRUE)? -
我没有上网,我们的服务器与Internet网络是分开的。
-
你应该更喜欢
install.packages("dir/package_name", repos = NULL),其中dir/是你下载zip文件package_name的目录。 -
你能以管理员身份运行 R 吗?
-
是的,我可以使用管理员用户。
标签: r installation package