[Rd] Building a windows binary of a package on Linux

Marc Schwartz (via MN) mschwartz at mn.rr.com
Wed Nov 30 17:10:06 CET 2005

On Wed, 2005-11-30 at 14:33 +0000, Gavin Simpson wrote:
> Dear List,
> Can I build a binary package (.zip) for Windows on my Linux machine from
> my package sources? There is no C, C++, Fortran code involved, just
> plain ol' R. I read through the article by Jun and Rossini, but (on
> first reading) this seems more targeted at building a Windows version of
> R and Windows package binaries that contain C, C++, Fortran code that
> needs to be compiled.
> Thanks,
> Gav


If you have the source tarball, there is a file called README.packages
in .../src/gnuwin32 which describes the process. The details begin on
line 124 in that file. That too covers more than just R code based

If you just have R code only, you could use the following:

  cd R_HOME/library 
  zip -r9X mypkg mypkg

where 'mypkg' is the folder name of the _installed_ Linux version of the

This creates 'mypkg.zip', which can then be installed on the Windows


Marc Schwartz

More information about the R-devel mailing list