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
Cheers
--
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.
Augusto.Sanabria at ga.gov.au
2010-May-31 07:18 UTC
[R] error on Windows OS [SEC=UNCLASSIFIED]
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
--------------------------------------------
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
Cheers
--
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.
M.Ribeiro wrote:> 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' >That's a funny name to use for the library for R 2.10.x, but it's not a serious error.> 'sh' is not recognized as an internal or external command, > operable program or batch file. >That's the one that stopped the install. Apparently the Rtools bin directory is not being found by Windows in your PATH. The Rtools installer can put it there; maybe you should just reinstall Rtools and choose that option.> 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?? >That doesn't matter, as long as it's a readable directory.> Do I need to do anything else with the Rtools besides installing > (C:/Rtools)?? >Set the Windows PATH variable.> Is the problem with the way I did or with the package?? > >So far it looks like the Rtools install. Duncan Murdoch> Thanks a lot > Cheers >
Ok,
I re-installed the Rtools (now Rtools211 because I was in another computer
with R version 2.10) , and the message now when I tried to install the
package was
Warning: invalid package 'GWSR_1.0.tar.gz'
Erro: ERROR: no packages specified
Warning message:
In install.packages("GWSR_1.0.tar.gz", repos = NULL, type =
"source") :
installation of package 'GWSR_1.0.tar.gz' had non-zero exit status
Any Clue?
Thanks a lot
Cheers
--
View this message in context:
http://r.789695.n4.nabble.com/error-on-Windows-OS-tp2236758p2237341.html
Sent from the R help mailing list archive at Nabble.com.