Date: 2014-11-07 17:25 Sender: P. RoebuckThe problem is you are using an ancient version of R (circa 2009). Ask your sysadmin to install the current version and rerun the commands per my initial followup. That package requires R-3.1.1 at minimum.
## Install current version of R (assuming RedHat)
$ sudo yum install R
## Verify the version installed afterwards says the following
$ R --version
R version 3.1.2 ... (Pumpkin Helmet)
## Create user package library for current version of R
$ mkdir ~/R/x86_64-pc-linux-gnu-library/3.1
## Install package (as per original followup)
$ R
R> rforge <- "http://r-forge.r-project.org"
R> install.packages("soiltexture", repos=rforge, type="source", depend=TRUE)
R> library("soiltexture")
|
Date: 2014-11-07 14:07 Sender: Timothy WilsonPascal & Paul,
I tried using your suggestions. Please see the error messages below. I need some "dependencies" which I am completely blind about. I will appreciate your help to proceed. Thanks.
>rforge<-"http://r-forge.r-project.org"
install.packages("soiltexture",repos=rforge,type="source",dependencies=TRUE)
Warning in install.packages("soiltexture", repos = rforge, type = "source", :
argument 'lib' is missing: using '/usr/local/lib/R/site-library'
Warning in install.packages("soiltexture", repos = rforge, type = "source", :
'lib = "/usr/local/lib/R/site-library"' is not writable
Would you like to create a personal library
'~/R/x86_64-pc-linux-gnu-library/2.10'
to install packages into? (y/n) y
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘soiltexture’ is not available
> library("soiltexture")
Error in library("soiltexture") :
there is no package called 'soiltexture'
install.packages("soiltexture",repos="http://R-Forge.R-projec.org")
Warning in install.packages("soiltexture", repos = "http://R-Forge.R-projec.org") :
argument 'lib' is missing: using '/home/wilsont/R/x86_64-pc-linux-gnu-library/2.10'
Warning: unable to access index for repository http://R-Forge.R-projec.org/src/contrib
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘soiltexture’ is not available
|
Date: 2014-11-07 07:59 Sender: Pascal SchramlHello,
the easiest way to install this or any other package ist to type the following in you R-Console:
install.packages("soiltexture", repos = "http://cran.r-project.org/")
This is for the CRAN-version.
I however, recommend you to download the more recent R-forge version (1.2.19 vs 1.2.20). Just type:
install.packages("soiltexture", repos="http://R-Forge.R-project.org")
Regards,
Pascal |