[R] SOS:) help on install package

Liaw, Andy andy_liaw at merck.com
Wed Jun 23 04:14:54 CEST 2004


Please, do read the help pages of functions you are trying to use.  If you
don't tell install.packages() where to install the package, it will try to
guess where to put it, and then warn you about it.

Andy

> From: Yan Yu [mailto:yanyu at CS.UCLA.EDU] 
> 
> i seem to have some progress by using what you suggested, thanks!
> i got the following:
> Warning message:
> argument `lib' is missing: using /usr/local/lib/R/site-library in:
> install.packages("locfit")
> 
> i wonder what is wrong?
> thanks,
> yan
> 
> 
> On Tue, 22 Jun 2004, Liaw, Andy wrote:
> 
> > This was asked recently on R-help.  You are calling 
> update.packages() wrong:
> > The first argument it expects is lib.loc, which is the 
> directory where the
> > packages are to be installed.  (You can see that either from
> > ?update.packages or args(update.packages).)  You shouldn't 
> be calling
> > update.packages() with package names.
> >
> > install.packages("locfit") is probably what you really want to do.
> >
> > Andy
> >
> > > From: Yan Yu
> > >
> > > HI,
> > > i tried to install package by using
> > > update.packages( "locfit" )
> > >
> > > I got the following error:
> > > trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
> > > Content type `text/plain; charset=iso-8859-1' length 172492 bytes
> > > opened URL
> > > .......... .......... .......... .......... ..........
> > > .......... .......... .......... .......... ..........
> > > .......... .......... .......... .......... ..........
> > > .......... ........
> > > downloaded 168Kb
> > >
> > > Error in "colnames<-"(`*tmp*`, value = c("Package",
> > > "LibPath", pkgFlds)) :
> > >         attempt to set colnames on object with less than two
> > > dimensions
> > >
> > > IS there anyone know what is wrong, and
> > > what other commands to use to install a package in R?
> > >
> > > many thanks,
> > > yan
> > >
> > > ______________________________________________
> > > R-help at stat.math.ethz.ch mailing list
> > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > > PLEASE do read the posting guide!
> > > http://www.R-project.org/posting-guide.html
> > >
> > >
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html
> >
> 
>




More information about the R-help mailing list