I tried to install the package "tseries" but could not do so. Any suggestions are welcome. I am using Ubuntu Linux and here is what I did: $ sudo R Then once in R, I did> install.packages("tseries", dep=TRUE)which gave a long list of errors. Going through them, I saw that the basic problem was that the package "grid" was not found by the packages (like "lattice", "Hmisc", etc.) that were part of the dependencies for "tseries". So, I tried installing the package "grid" but could not. Here is what I did (and the result): $ sudo R Once in R, I did> install.packages("grid", dep=TRUE)And this is what I got as error message Warning in install.packages("grid", dep = TRUE) : argument 'lib' is missing: using /usr/local/lib/R/site-library --- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done dependency '?grid?' is not available How should I proceed? Deepankar
Deepankar Basu wrote:> I tried to install the package "tseries" but could not do so. Any > suggestions are welcome. I am using Ubuntu Linux and here is what I did: > > $ sudo R > > Then once in R, I did > > >> install.packages("tseries", dep=TRUE) >> > > which gave a long list of errors. Going through them, I saw that the > basic problem was that the package "grid" was not found by the packages > (like "lattice", "Hmisc", etc.) that were part of the dependencies for > "tseries". So, I tried installing the package "grid" but could not. Here > is what I did (and the result): > > $ sudo R > > Once in R, I did > > >> install.packages("grid", dep=TRUE) >> > > And this is what I got as error message > > Warning in install.packages("grid", dep = TRUE) : > argument 'lib' is missing: using /usr/local/lib/R/site-library > --- Please select a CRAN mirror for use in this session --- > Loading Tcl/Tk interface ... done > dependency '?grid?' is not available > > How should I proceed? >I think this is Dirk's way of shooting you in the foot... Debian/Ubuntu has a split between packages r-base and r-recommended, which is not The Intended Way of doing things. If you don't install r-recommended, things like the above are liable to happen.
'grid' is an integral part of R, so this suggests your R installation is broken. (You could have found that out from the R FAQ Q5.1.1.) You have told us very little (please study the posting guide), not including which version of R and how you installed it. Please try reinstalling R, from the sources of R 2.5.0 RC if you can. On Thu, 19 Apr 2007, Deepankar Basu wrote:> I tried to install the package "tseries" but could not do so. Any > suggestions are welcome. I am using Ubuntu Linux and here is what I did: > > $ sudo R > > Then once in R, I did > >> install.packages("tseries", dep=TRUE) > > which gave a long list of errors. Going through them, I saw that the > basic problem was that the package "grid" was not found by the packages > (like "lattice", "Hmisc", etc.) that were part of the dependencies for > "tseries". So, I tried installing the package "grid" but could not. Here > is what I did (and the result): > > $ sudo R > > Once in R, I did > >> install.packages("grid", dep=TRUE) > > And this is what I got as error message > > Warning in install.packages("grid", dep = TRUE) : > argument 'lib' is missing: using /usr/local/lib/R/site-library > --- Please select a CRAN mirror for use in this session --- > Loading Tcl/Tk interface ... done > dependency '??grid??' is not available > > How should I proceed? > > Deepankar > > ______________________________________________ > 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 > and provide commented, minimal, self-contained, reproducible code. >-- 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
Thanks Dirk, that worked. $ sudo apt-get install r-base-dev r-cran-tseries Deepankar ----- Original Message ----- From: Dirk Eddelbuettel <edd at debian.org> Date: Thursday, April 19, 2007 5:32 pm Subject: Re: [R] Problem installing packages> On Thu, Apr 19, 2007 at 05:19:37PM -0400, Deepankar Basu wrote: > > While installing R (version 2.4.0) on my Dell desktop (Optiplex > GX 270) > > on a Ubuntu Linux platform, I had followed the advice contained > in the > > following link: > > http://cran.r-project.org/bin/linux/debian/README > > > > Briefly, what I had done is the following: > > > > I had added "deb http://cran.R-project.org/bin/linux/ubuntu > dapper/" to > > my "/etc/apt/sources.list" and then did > > > > $ sudo apt-get update > > $ sudo apt-get upgrade > > $ sudo apt-get install r-base > > As I suspected: > > $ sudo apt-get install r-base-dev r-cran-tseries. > > Try that. > > > Since my R installation is broken, my questions are: > > Not so fast. Vincent works hard to provide good backports. It may > merely be incomplete. > > Also consider subscribing to r-sig-debian list for Debian/Ubuntu > questions. > > Dirk > > > (1)should I re-install R as above or do I need to install > manually? I > > would of course prefer using apt-get. > > > > (2)should I also install the r-commended bundle? I did not do > this last > > time and as Peter has pointed out, this might have caused the > problem.> > > Deepankar > > > > > > On Thu, 2007-04-19 at 21:53 +0100, Prof Brian Ripley wrote: > > > 'grid' is an integral part of R, so this suggests your R > installation is > > > broken. (You could have found that out from the R FAQ Q5.1.1.) > > > > > > You have told us very little (please study the posting guide), > not > > > including which version of R and how you installed it. Please > try > > > reinstalling R, from the sources of R 2.5.0 RC if you can. > > > > > > On Thu, 19 Apr 2007, Deepankar Basu wrote: > > > > > > > I tried to install the package "tseries" but could not do so. > Any> > > suggestions are welcome. I am using Ubuntu Linux and here > is what I did: > > > > > > > > $ sudo R > > > > > > > > Then once in R, I did > > > > > > > >> install.packages("tseries", dep=TRUE) > > > > > > > > which gave a long list of errors. Going through them, I saw > that the > > > > basic problem was that the package "grid" was not found by > the packages > > > > (like "lattice", "Hmisc", etc.) that were part of the > dependencies for > > > > "tseries". So, I tried installing the package "grid" but > could not. Here > > > > is what I did (and the result): > > > > > > > > $ sudo R > > > > > > > > Once in R, I did > > > > > > > >> install.packages("grid", dep=TRUE) > > > > > > > > And this is what I got as error message > > > > > > > > Warning in install.packages("grid", dep = TRUE) : > > > > argument 'lib' is missing: using > /usr/local/lib/R/site-library > > > > --- Please select a CRAN mirror for use in this session --- > > > > Loading Tcl/Tk interface ... done > > > > dependency '????grid????' is not available > > > > > > > > How should I proceed? > > > > > > > > Deepankar > > > > > > > > ______________________________________________ > > > > 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 > > > > and provide commented, minimal, self-contained, reproducible > code.> > > > > > > > > > ______________________________________________ > > 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> and provide commented, minimal, self-contained, > reproducible code. > > -- > Hell, there are no rules here - we're trying to accomplish > something. > -- Thomas A. Edison >