[R] error on Windows OS [SEC=UNCLASSIFIED]

Augusto.Sanabria at ga.gov.au Augusto.Sanabria at ga.gov.au
Mon May 31 09:18:39 CEST 2010

Hi M. Ribeiro,

For Windows you need to download the correct
package (*.zip) not the Linux package. Once the windows
package has been downloaded into a directory,
you can install it directly from the R shell, see
Packages > install packages from local zip files.
Once the package has been installed you can
load it into your session using
Packages > load package
Or library("package_name")

Hope it helps,


Augusto Sanabria. MSc, PhD.
Mathematical Modeller
Risk & Impact Analysis Group
Geospatial & Earth Monitoring Division
Geoscience Australia (www.ga.gov.au)
Cnr. Jerrabomberra Av. & Hindmarsh Dr.
Symonston ACT 2601
Ph. (02) 6249-9155

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of M.Ribeiro
Sent: Monday, 31 May 2010 11:47
To: r-help at r-project.org
Subject: [R] error on Windows OS

I received by email an R package (file.tar.gz) that was created in Linux. The package was already installed in another computer in linux using install.packages and it worked

I am not familiar with installing packages but I would like to install it on Windows

I downloaded the Rtools29.exe and tryed to install using

install.packages("foo.tar.gz", repos=NULL, type="source")
but the message was

Warning in install.packages("GR_1.0.tar.gz", repos = NULL, type = "source")
  argument 'lib' is missing: using 'C:\Documents and Settings\mr\My Documents/R/win-library/2.9' 'sh' is not recognized as an internal or external command, operable program or batch file. Warning message: In install.packages("GR_1.0.tar.gz", repos = NULL, type = "source") :
  installation of package 'GR_1.0.tar.gz' had non-zero exit status

my questios are:

Where shall I save the .tar.gz file??
Do I need to do anything else with the Rtools besides installing (C:/Rtools)?? Is the problem with the way I did or with the package??

Thanks a lot
View this message in context: http://r.789695.n4.nabble.com/error-on-Windows-OS-tp2236758p2236758.html
Sent from the R help mailing list archive at Nabble.com.

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