我想从本地安装一个同事创建的包。首先,您必须知道我不拥有计算机上的管理员权限,而且我公司的政策非常严格。
所以,当我尝试安装软件包时,我会这样做
> install.packages("C:\\Users\\myusername\\packagename.tar.gz", repos = NULL, type = "source")
,
但它不起作用并给我以下错误:
* installing *source* package 'packagename' ...
** libs
*** arch - i386
Warning: running command 'make -f "C:/Users/myusername/R/R-32~1.4RE/etc/i386/Makeconf" -f "C:/Users/myusername/R/R-32~1.4RE/share/make/winshlib.mk" SHLIB="package name.dll" SHLIB_LIBADD='$(FLIBS)' OBJECTS="classTree.o regTree.o regrf.o rf.o rfsub.o rfutils.o"' had status 127
ERROR: compilation failed for package 'packagename'
* removing 'C:/Users/myusername/R/R-3.2.4revised/library/packagename'
Warning messages:
1: running command '"C:/Users/myusername/R/R-3.2.4revised/bin/x64/R" CMD INSTALL -l "C:\Users\myusername\R\R-3.2.4revised\library" "C:/Users/myusername/packagename.tar.gz"' had status 1
2: In install.packages("C:\\Users\\myusername\\packagename.tar.gz", :
installation of package ‘C:/Users/myusername/packagename.tar.gz’ had non-zero exit status
我在互联网上搜索,我发现Rtools可能没有安装并用R映射。我试图安装它但是在安装结束时会出现提示,说明如下:
创建注册表项时出错:HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ SessionManager \ Environment
RegCreateKeyEx失败;代码5.访问被拒绝。
(抱歉,我没有10点以上的声誉,所以我无法上传提示的图片)
回想一下,我没有此计算机的管理员权限。
也许这就是我无法安装软件包的原因?
任何帮助都将非常感谢! 非常感谢!