我正在尝试在R中安装matrixStats包。我使用的命令是:
install.packages(" matrixStas",dependencies = TRUE) 此命令产生以下错误:
* installing *source* package ‘colorspace’ ...
** package ‘colorspace’ successfully unpacked and MD5 sums checked
** libs
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error: package or namespace load failed for ‘colorspace’ in
library.dynam(lib, package, package.lib):shared object ‘colorspace.so’
not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/local/lib/R/site-library/colorspace’
我尝试卸载并重新安装R(两次),更新软件包,尝试从linux命令行安装软件包。然后我安装了Rstudio并尝试使用它来安装包,这反过来也给出了相同的问题。似乎没有任何帮助。我也尝试过安装其他软件包,但最终都显示出同样的错误。 我使用的是R版本3.4.2 sessionInfo:
R version 3.4.2 (2017-09-28)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.3 LTS
Matrix products: default
BLAS: /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0
locale:
[1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN
[4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN
[7] LC_PAPER=en_IN LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.2
你们的任何建议都对我有很大的帮助