[R] Compilation of R (linux) package on windows

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Feb 4 17:32:06 CET 2005


Depire Alexandre wrote:

> Hello,
> I develop some R package on Linux machine with C subroutines.
> The programs in C are well compiled on Linux machine and so I have some ".so" 
> files.
> 
> Now, I want to do the same work on windows, so I install R (the last version) 
> on windows, with Active Perl and djgpp, which is, as I know, the gcc version 
> for windows (to compile C program), but unfortunately when I run "R CMD SHLIB 
> inv.c, ", I have an error.
> I think it's a problem with my choice of compiler C, could somebody give to me 
> the name of good compiler to do that ?
> 

Please read the R for Windows FAQ 3.1 "Can I install packages into 
libraries in this version?".
It points you to README.packages, 
http://www.murdoch-sutherland.com/Rtools/ , and tells you "Note that 
this is rather tricky; please do ensure that you have followed the 
instructions exactly."

Uwe Ligges




More information about the R-help mailing list