SCM

[#5979] How to download, install and run "soil texture wizard" on ubuntu that already has r-base installed?

Date:
2014-11-06 20:40
Priority:
3
State:
Closed
Submitted by:
Timothy Wilson (twilson)
Assigned to:
Nobody (None)
Hardware:
Other
Operating System:
other
Severity:
critical
URL:
Summary:
How to download, install and run "soil texture wizard" on ubuntu that already has r-base installed?

Detailed description
I downloaded this file: soiltexture_1.2.19.tar.gz from the site: http://cran.r-project.org/package=soiltexture. But I am having trouble installing it. I will appreciate your help.


Sincerely,

Tim Wilson
tim.wilson@noaa.gov

Comments:

Message  ↓
Date: 2014-11-07 20:03
Sender: P. Roebuck

<http://cran.r-project.org/bin/linux/ubuntu/README>

Date: 2014-11-07 18:58
Sender: Timothy Wilson

Paul, Thanks. I am using ubuntu and it has r-base 2.10.1-2 installed instead of R.

Date: 2014-11-07 17:25
Sender: P. Roebuck

The 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 Wilson

Pascal & 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 Schraml

Hello,

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

Date: 2014-11-06 21:22
Sender: P. Roebuck

$ R
R> rforge <- "http://r-forge.r-project.org";
R> install.packages("soiltexture", repos=rforge, type="source", depend=TRUE)
R> library("soiltexture")

Attached Files:

Changes

Field Old Value Date By
status_idOpen2018-05-11 09:55gstar
close_dateNone2018-05-11 09:55gstar
Thanks to:
Vienna University of Economics and Business Powered By FusionForge