Re: install.package errors

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: install.package errors
From: Prof Brian D Ripley (
Date: Thu 23 Dec 1999 - 07:20:30 EST

Message-ID: <Pine.GSO.4.05.9912222108440.24399-100000@auk.stats>

On Wed, 22 Dec 1999, Paul Gilbert wrote:

> Paul Johnson
> I'm copying this to R-devel because I think the warning messages might
> be improved a bit (and I'm not sure what the problem is but there may
> also be a bug). I think the install.packages() and update.packages()
> mechanism is very exciting. It speeds and simplifies updates, which is
> very important when things are changing as rapidly as they are now
> changing, but it still has a few rough edges.
> > I'm a complete R-package novice.
> >What am I doing wrong:
> >>install.packages(c("syskern","tframe","dse"),contriburl="")
> >sh: wget: command not found
> >Error: Object "x" not found
> >In addition: Warning message:
> >argument `lib' is missing: using /usr/lib/R/library in:
> >install.packages(c("syskern", "tframe", "dse"), contriburl =
> >"")
> First of all, you might try install.packages(c("tseries", "VR")) or some
> other packages directly from CRAN to see if you get a similar error.
> Installing from my server by setting contriburl is still somewhat
> experimental (and perhaps unorthodox). Syskern and tframe are standard
> packages, but dse is a bundle of two packages together. This is
> something new in R 0.90.1 which I don't think was supported in 0.90.0.


> Also, I think install.packages is only supported in Unix so far, and it

Also fully supported on Windows, but you need wget.exe (which we put on
CRAN) or lynx.exe.

> Install.packages uses download.file() which by default tries to
> determine if you have cp, wget, or lynx for getting a file from a server
> on the Internet. The message "sh: wget: command not found" suggests you
> do not have wget and, if I understand things correctly, download.files
> has already not found cp and will next try lynx. If it does not find
> lynx it returns the message "No download method found", and since you
> did not get that message I think lynx must have been found. I get the
> "argument 'lib' is missing ..." warning, but it does not seem to be a
> problem. It may be a problem if you do not have write permission in the
> directory where R is installed.

It is a warning. You are supposed to specify where you want the files
put (in which local library). If you do not, it will pick the first in
the list (.lib.loc) and tell you what it has done, in case it surprises
you. As Paul G says. you may need to specify an alternative. (The help
file does point out that you will get a warning: it always helps to read
the help, if only so you can tell us it is not good enough!)


Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:12 EST