From ripley at stats.ox.ac.uk  Sun Jun 12 20:28:27 2011
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Sun, 12 Jun 2011 19:28:27 +0100 (BST)
Subject: [Rd] Cross-compiling package
In-Reply-To: <4DF4F18E.7080505@statistik.tu-dortmund.de>
References: <08E4504D-914B-4AE3-A40B-A46DB6648D8D@unicaen.fr>
	<4DF4F18E.7080505@statistik.tu-dortmund.de>
Message-ID: <alpine.LFD.2.02.1106121921580.2673@gannet.stats.ox.ac.uk>

On Sun, 12 Jun 2011, Uwe Ligges wrote:

> On 12.06.2011 18:57, Sylvain Loiseau wrote:
>> Hello,
>> 
>> I'm facing problems with compiling a package (containing only R-code and 
>> dataset) under OSX for Windows.

Packages are 'installed': compilation is only involved if they contain 
C/Fortran/C++/... source code.  It seems using the wrong term has 
misled people.

>> Is there a command line producing a zip archive that can be installed on 
>> Windows using the windows R GUI ?
>
> Well, cross compiling was always rather difficult.  Why not just you the 
> winbuilder service, if you do not have access to a Windows box:
> http://win-builder.r-project.org/
> It also provides you with check results for the Windows platform.

Good point, but there is no 'cross-compiling' involved here.

Suppose I have a package 'mypkg' installed on Mac OS X (to give it the 
correct name).  Then in a Terminal window

cd <directory above mypkg>
zip -r9X mypkg_ver.zip mypkg

where you need to set 'ver' to be the version number of the package, 
read from mypkg/DESCRIPTION.

>
> Best,
> Uwe Ligges
>
>
>
>> Best,
>> Sylvain
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Cross-compiling package
Prof Brian Ripley