Trouble Installing geoR package

我是研究僧i 提交于 2019-12-20 07:29:14

问题


I have just installed R and R studio (version 3.0.1) on my Xubuntu 13.10. I want to use the geoR package. However, when I tried to install it, I got an error:

install.packages("geoR")

Installing package into ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified)

...

ERROR: dependency ‘RandomFields’ is not available for package ‘geoR’ * removing ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0/geoR’

so I tried to install RandomFields

install.packages("RandomFields")

...

Installing package into ‘/home/.../R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified)

Warning in install.packages : package ‘RandomFields’ is not available (for R version 3.0.1)

Can you help me what to do with it?


回答1:


You need to get latest R packages for your Xubuntu version (Saucy Salamander).

sudo add-apt-repository "deb..."

They write how to in Installation section. Then you need to upgrade to new version of R.

sudo apt-get update && sudo apt-get upgrade

It will work after that.



来源:https://stackoverflow.com/questions/22955484/trouble-installing-geor-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!