Li, Jia
2005-May-19 14:09 UTC
[R] install R packages--sorry last letter that I sent I had an error, this one is the right one
Dear All, When I tried to install R packages I found this error:> library(survival)Loading required package: splines> install.packages("splines")--- Please select a CRAN mirror for use in this session --- Warning message: package splines is in use and will not be installed But I just opened R, and haven't used anything yet, how come did it say "package splines is in use"? Thanks Jia
Martyn Plummer
2005-May-19 14:18 UTC
[R] install R packages--sorry last letter that I sent I had an error, this one is the right one
On Thu, 2005-05-19 at 10:09 -0400, Li, Jia wrote:> Dear All, > > When I tried to install R packages I found this error: > > library(survival) > Loading required package: splinesThis is for your information. It is not an error message and is not asking you to do anything (i.e. it says "loading" not "please load")> > install.packages("splines") > --- Please select a CRAN mirror for use in this session --- > Warning message: > package splines is in use and will not be installed > > But I just opened R, and haven't used anything yet, how come did it say "package splines is in use"?Because it was loaded automatically when you loaded the splines package. Have a look at the search path with search() You have confused *installing* a package - putting it's files on your disk - with *loading* it - making it's objects and help pages available for use in an R session. Martyn
Uwe Ligges
2005-May-19 14:25 UTC
[R] install R packages--sorry last letter that I sent I had an error, this one is the right one
Li, Jia wrote:> Dear All, > > When I tried to install R packages I found this error: > >>library(survival) > > Loading required package: splines > >>install.packages("splines") > > --- Please select a CRAN mirror for use in this session --- > Warning message: > package splines is in use and will not be installed > > But I just opened R, and haven't used anything yet, how come did it say "package splines is in use"? >library(survival) told you that it loaded the required package "splines". So it *is* in use. Uwe Ligges> Thanks > > Jia > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Prof Brian Ripley
2005-May-19 18:08 UTC
[R] install R packages--sorry last letter that I sent I had an error, this one is the right one
On Thu, 19 May 2005, Li, Jia wrote:> Dear All, > > When I tried to install R packages I found this error: >> library(survival) > Loading required package: splines >> install.packages("splines") > --- Please select a CRAN mirror for use in this session --- > Warning message: > package splines is in use and will not be installed > > But I just opened R, and haven't used anything yet, how come did it say > "package splines is in use"?Package survival uses it, and you did use that .... Note that package splines is a standard package, part of the distribution. install.packages() will not find it. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595