Windows 7 installation of .qz package from SourceForge
Thank you Duncan, the 2nd instructions worked. The both probably would have worked, but I had some code (below) that threw an error. It's designed to automatically set the internet connection to my Windows setting, so R would know the proxy server used at my worksite. I had seen this suggestion in the archives of R-Help. However, this code in the R-2.14.0/etc./Rprofile.site file wasn't being recognized as a valid command, so I commented it out (the code works fine when I run it in the RGUI). Thanks again, Paul # use the proxy settings for Windows/IE: setInternet2(TRUE) 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 -----Original Message----- From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] Sent: Wednesday, February 01, 2012 11:48 AM To: Prew, Paul Cc: r-help at r-project.org Subject: Re: [R] Windows 7 installation of .qz package from SourceForge
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.
CONFIDENTIALITY NOTICE: =\ \ This e-mail communication a...{{dropped:12}}