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
> 
> ______________________________________________
> [EMAIL PROTECTED] 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
> 
>

______________________________________________
[EMAIL PROTECTED] 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

Reply via email to