Trouble Installing geoR package

2019-03-03 11:53发布

问题:

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.