系统版本
debian testing(jessie),R version 3.0.3 (2014-03-06) -- "Warm Puppy"
如题,在Rstudio中用install.packages()无法安装部分包,提示如下错误:
install.packages("RcppExamples")<br />
Installing package into ‘/home/zlf/MainLand/R/x86_64-unknown-linux-gnu-library/3.0’<br />
(as ‘lib’ is unspecified)<br />
试开URL’http://mirrors.ustc.edu.cn/CRAN/src/contrib/RcppExamples_0.1.6.tar.gz'<br />
Content type 'text/plain' length 12913 bytes (12 Kb)<br />
打开了URL<br />
==================================================<br />
downloaded 12 Kb</p>
<p>* installing *source* package ‘RcppExamples’ ...<br />
** 成功将‘RcppExamples’程序包解包并MD5和检查<br />
** libs<br />
错误于if (nzchar(SHLIB_LIBADD)) SHLIB_LIBADD else character() :<br />
参数长度为零<br />
* removing ‘/home/zlf/MainLand/R/x86_64-unknown-linux-gnu-library/3.0/RcppExamples’<br />
Warning in install.packages :<br />
installation of package ‘RcppExamples’ had non-zero exit status</p>
<p>The downloaded source packages are in<br />
‘/tmp/RtmpdfJHG1/downloaded_packages’
我在stackexchange上问了,有个解答说是在debian上有些包会在稳定之后被纳入到debian的源里面,于是像Rcpp等起初安装不上的的包可以在debian源中找到并且安装上,但是很多包并不再debian的源里面,用install.packages()的方法还是安装不上。求解!
而且错误
错误于if (nzchar(SHLIB_LIBADD)) SHLIB_LIBADD else character() :<br />
参数长度为零
不只是在安装包的时候才出现,在用Rcpp调用c++代码的时候也出现这个错误。实在是困扰我很久了,感谢帮助!
</p>