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. Thanks in advance.. Joseph Hughes jdhughes99 at mindspring.com -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000919/a6e57030/attachment.html
On Tue, 19 Sep 2000, 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. >(I'm assuming that this is for a Windows 9*/NT platform) Both Nicholas Lewin-Koh <kohnicho at comp.nus.edu.sg> and I have compiled splancs using the rw1011 standard compilation route with success - keeping to the instructions given in the readme.packages file and using Brian Ripley's portal works wonders. The R source package we used is on ftp://reclus.nhh.no/pub/R/splancs-2.01-1.tar.gz but still has the original copyright texts, and has not been released to CRAN. Barry Rowlingson has said: "I'm happy to release the code under an 'unlimited distribution' license. I'm not sure about copyright - as long as my name, email, and web address is in there somewhere I'm happy. I think some mention of zero-warranty shuold go in there too." "Splancs is free. Take it, use it, modify it, but make sure anyone who gets it can find out where it first came from easily enough." but I'm not sure that that is enough for CRAN. I've added examples, test data, and for successive releases of R check that "R CMD check splancs" works. I have however taken out the uk() function and data. The data sets are from Bailey and Gatrell's "Interactive Spatial Data Analysis", and their distribution has been approved. If the licence issue is resolved, then having the source and binaries on CRAN would help a fair number of people who ask from time to time. I will zip up the Windows NT4 binary later today, and put it on the ftp server mentioned above. Hope this helps, Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no and: Department of Geography and Regional Development, University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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). guido (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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Reasonably Related Threads
- Link with C code
- R-beta: makefile command line for recreating dynload demo dll
- Question:manipulating spatial data using combination of Maptools and Splancs
- Warning messages in Splancs package :: no non-missing arguments to min; returning Inf
- error with bbox for k12hat (splancs) bivarite k-function