[R] instal tar.gz package on windows

Duncan Murdoch murdoch at stats.uwo.ca
Fri Aug 1 00:01:01 CEST 2008

On 31/07/2008 4:07 PM, georgiana onicescu wrote:
> Dear HelpeRs,
> I have created a tar.gz package (the package was created on unix) and I would like to install it in R on a Windows operating system. 
> As far as I know, R in Windows accepts only packages in zip file for installation and I could not find a way to install a tar.gz file. 
> I would like to mention that I  installed the package on unix using install.packages and it works. I also tried to decompress the tar.gz file and create a zip file but the installation of the resulting zip files gives me errors.
> Any help would be greatly appreciated,

If you have the Rtools on Windows (available from 
http://www.murdoch-sutherland.com/Rtools, get the installer 
Rtools28.exe), then you can install it in Windows using

install.packages("foo.tar.gz", repos=NULL, type="source")

or from a command line using

Rcmd INSTALL foo.tar.gz

It's pretty much the same as on Unix, except that most people don't have 
the tools.

Duncan Murdoch

More information about the R-help mailing list