系统中有一个损坏的devtools
包:
library(devtools)
Error: package ‘devtools’ was built for x86_64-apple-darwin13.4.0
尝试卸载不会产生任何结果:
remove.packages("devtools")
Removing package from ‘/ye/netapp/jimmie.ye/tools/R/x86_64-redhat-linux-gnu-library/3.1’
(as ‘lib’ is unspecified)
Error in find.package(pkgs, lib) : there is no package called ‘devtools’
现在我尝试安装它并收到错误:
install.packages("devtools")
* installing to library ‘/tools/R/x86_64-redhat-linux-gnu-library/3.1’
* installing *source* package ‘devtools’ ...
** package ‘devtools’ successfully unpacked and MD5 sums checked
** libs
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG -I/usr/local/include -fpic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -c devtools.c -o devtools.o
gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -L/usr/local/lib64 -o devtools.so devtools.o -L/usr/lib64/R/lib -lR
installing to /tools/R/x86_64-redhat-linux-gnu-library/3.1/devtools/libs
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
object 'vI' not found
ERROR: lazy loading failed for package ‘devtools’
* removing ‘/tools/R/x86_64-redhat-linux-gnu-library/3.1/devtools’
任何想法如何进行?我在CentOS6上,R version 3.2.3 (2015-12-10)
答案 0 :(得分:3)
你不能混用
x86_64-apple-darwin13.4.0
适用于使用Linux的OS X / Macintosh:
x86_64的-红帽-Linux的GNU
你最好的选择可能是从
开始install.packages("devtools", repos="http://cloud.r-project.org")
并非常仔细地查看 以及您可能获得的任何错误消息,以便解决缺少的构建依赖项。