From mschwartz at mn.rr.com  Wed Nov 30 17:10:06 2005
From: mschwartz at mn.rr.com (Marc Schwartz (via MN))
Date: Wed, 30 Nov 2005 10:10:06 -0600
Subject: [Rd] Building a windows binary of a package on Linux
In-Reply-To: <1133361207.9803.36.camel@gsimpson.geog.ucl.ac.uk>
References: <1133361207.9803.36.camel@gsimpson.geog.ucl.ac.uk>
Message-ID: <1133367007.11280.4.camel@localhost.localdomain>

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

Gavin,

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 'mypkg.zip', which can then be installed on the Windows
side.

HTH,

Marc Schwartz



[Rd] Building a windows binary of a package on Linux
Marc Schwartz (via MN