[R] SOS:) help on install package

Liaw, Andy andy_liaw at merck.com
Wed Jun 23 03:55:25 CEST 2004


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
> 
>




More information about the R-help mailing list