[R] Windows 7 installation of .qz package from SourceForge
Duncan Murdoch
murdoch.duncan at gmail.com
Wed Feb 1 18:47:36 CET 2012
On 12-02-01 12:07 PM, Prew, Paul wrote:
> Hello, I'm trying to install the package metRology from SourceForge. I save the zip file metRology_0.9-06.tar.gz to my Windows 7 machine, and try to install the package using the RGUI: Packages> Install packages from local zip files> metRology_0.9-06.tar.gz. There's no .zip extension, but R seems to go to work on the installation with a couple warning messages and one error.
tar.gz files are source packages. .zip is a binary image of an
installed package.
To install a tar.gz, you can't use the menu items. If you have the
necessary tools set up properly, it should work to do
install.packages(".../path/to/metRology_0.9-06.tar.gz", type="source",
repos=NULL)
from within R.
If that fails (as it likely will if the package has C or Fortran code
and you haven't installed the right compilers), you need to get the R
tools from <CRAN mirror>/bin/windows/Rtools.
You can also install from outside R using "R CMD INSTALL
.../path/to/metRology_0.9-06.tar.gz".
Duncan Murdoch
> The menu Packages> Load Package ... doesn't provide metrology as one of the choices.
>
>
> ======R session window ========
>
>> utils:::menuInstallLocal()
> Warning in unzip(zipname, exdir = dest) :
> error 1 in extracting from zip file
> Warning in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
> cannot open compressed file 'metRology_0.9-06.tar.gz/DESCRIPTION', probable reason 'No such file or directory'
> Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
> cannot open the connection
>
> Do I use a utility such as 7-zip to decompress the underlying files, then re-zip into a file with the .zip extension?
> Thank you, Paul
>
>
>> sessionInfo()
> R version 2.14.0 (2011-10-31)
> Platform: i386-pc-mingw32/i386 (32-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C LC_TIME=English_United States.1252
>
> attached base packages:
> [1] tcltk stats graphics grDevices utils datasets methods base
>
> other attached packages:
> [1] Rcmdr_1.8-1 car_2.0-12 nnet_7.3-1 MASS_7.3-16
>
> loaded via a namespace (and not attached):
> [1] tools_2.14.0
>
> Paul Prew | Statistician
> 651-795-5942 | fax 651-204-7504
> Ecolab Research Center | Mail Stop ESC-F4412-A
> 655 Lone Oak Drive | Eagan, MN 55121-1560
>
>
> CONFIDENTIALITY NOTICE: \ This e-mail communication an...{{dropped:11}}
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list