[R] SOS:) help on install package

Yan Yu yanyu at CS.UCLA.EDU
Wed Jun 23 04:10:24 CEST 2004


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