[R] dyn.load and rw1000

Dave Lucy D.J.Lucy at Bradford.ac.uk
Tue Mar 21 12:27:45 CET 2000


> How do I compile a Fortran subroutine or a C function so that it can be
> dyn.loaded in the windows version of R-1.0.0? I use Cygnus C and Fortran 
> compilers (and mingw-something). 

You need to download the win' 9X package from CRAN which allows you to
build packages (forgotton what its called but it is availible as part of
the binary download something like R1000sp) - unpack it and it puts a
README.packages file in R home. This gives you more or less full
instructions. You already have a compiler which I believe is mentioned in
the documentation - it will also require perl5 to be installed, and a few
microsoft bits and pieces. I'm trying the same thing at the moment - but
I'm getting the Linux version to run properly first before having a go at
a full win port. 

In experimentation I have got a fortune cookie library to run - this was
just a test piece and didn't have any compiled code. It did alright using
modified copies of an existing package, but the documentation kept
returning an error on linking. I also couldn't do the win type of help. 

Hope this helps,


Dr. David Lucy
Department of Archaeological Sciences
University of Bradford
West Yorkshire

tel. +44 01274 233556
fax. +44 01274 235190

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list