[R] porting splancs library to R
guido at sirio.stat.unipd.it
Tue Sep 19 10:27:47 CEST 2000
On Tue, Sep 19, 2000 at 01:24:34AM -0400, joseph d. hughes wrote:
> I am trying to port the splancs library for S++ version 4.0 to R. I have modified the original FORTRAN to use dllwrap/dlltool (e.g. removed common blocks). I have been able to generate dll's (splancs.dll) using dllwrap/dlltool and Ming32 g77 with a -mdll switch. As of yet I have not been able to generate a dll that can be loaded by R.
> Does anyone out there have any suggestions. An example of a successful MAKEFILE or dllwrap/dlltool batch file would be greatly appreciated.
Since you mention mingw32, I suppose you are on Windows.
The Makefile used to build the 'binary for Windows' version of all
the packages at CRAN/bin/Windows-NT/contrib (the directory is
managed by Brian Ripley) is included in the rwXXXXsp.zip bit
of the binary distribution. You should also look to file readme.packages
included in the same archive.
This assume that you have organized the source tree for the package
as required by R. But this is easy and, in any case, required if
you plan to make your port available. Details on the needed structure
are in the R-exts manual (e.g. available in pdf form in rwXXXXd1.zip).
(ps) BTW, can you provide more details. On which system are you working
(OS, version)? Which version of the compiler are you using?
Which errors do you get when you try to load splancs.dll?
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