[R] install pls.pcr package

Göran Broström gb at stat.umu.se
Wed Jun 18 08:13:23 CEST 2003


On Wed, 18 Jun 2003, Dowkiw, Arnaud wrote:

> How do you install a package from CRAN ? I want to install pls.pcr, so I have downloaded pls.pcr_0.1.1.tar.gz  but when I try to install it using the install package(s) from local zip file(s) option it says : 
> 
> > install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL)
> Error in file(file, "r") : unable to open connection
> In addition: Warning messages: 
> 1: error 1 in extracting from zip file 
> 2: cannot open file `pls.pcr_0.1.1.tar.gz/DESCRIPTION' 

On Windows? As the error message suggest, use the .zip file, not the 
.tar.gz one. You can also install directly from CRAN, without explicit 
download.

Göran




More information about the R-help mailing list