[R] Packaging

Jim Lemon bitwrit at ozemail.com.au
Mon Feb 12 11:30:33 CET 2001

I'm in the process of porting a set of routines from S to R (the
'asypow' package) and have struck one or two problems that I've been
unable to clear up with the documentation I have.  I may simply need a
pointer to the right docs.  I managed to get the code to run with
minimal changes, but in order to get it to load using library(), had to
run it through:

R CMD build  ...

and then


This allowed the R code to be read - previously I was getting the
"library contains no R code" error message when loading with library()
even though I had set up things as described in "R-exts"..  However, the
shared library was not loading.  I found that the build/INSTALL sequence
had done two things:

1) concatenated all of the R code into one file, which is okay, but kind
of messy for anyone to edit.
2) compiled the FORTRAN source, but renamed the library so that it was
no longer recognized.  When I manually used dyn.load() to load the
library that I had previously compiled, everything seemed to work.

I've gone through what I think are the relevant parts of "R-exts" and
couldn't find a help page for the "build" command to sort out the
compiled library problem.  Any hints?  (Then I can try to write the man
pages - joy! )


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