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

From: Marc Schwartz (via MN) <>
Date: Wed 30 Nov 2005 - 16:10:06 GMT

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 packages.

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 package.

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

HTH, Marc Schwartz mailing list Received on Thu Dec 01 04:10:55 2005

This archive was generated by hypermail 2.1.8 : Wed 30 Nov 2005 - 21:25:24 GMT