我已经在stackoverflow中尝试了很多这个问题,例如update.package
,安装' codetools'以及stackoverflow中的一些提示 - 我应该如何处理“package' xxx& #39;不可用“警告?
但它不起作用。
包似乎已安装,但无法加载 -
library(survival)
## error:package ‘survival’ was built before R 3.0.0: please re-install it
答案 0 :(得分:1)
@John太棒了!我之前使用过update.packages,但它没有工作 - 只是现在它有效! 但仍有警告 -
package ‘survival’ was built under R version 3.1.2
@Ben Bolker
sessionInfo()#R version 3.1.1 (2014-07-10)#Platform: i386-w64-mingw32/i386 (32-bit)
#locale: #[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
#[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
#[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
#[4] LC_NUMERIC=C
#[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
#attached base packages:#[1] splines stats graphics grDevices
#[5] utils datasets methods base #other attached packages:
#[1] survival_2.37-7#loaded via a namespace (and not attached):#[1] tools_3.1.1