[R] dyn.load problem

Joerg Kindermann Joerg.Kindermann at gmd.de
Mon Jan 17 16:00:41 CET 2000


I'm trying to write modified versions of R save/load functions which read
from/write to a char array instead of a file pointer. I want to compile
my functions into a library and dyn.load them. Of course the new functions
mySave/Load will use some of the internal R functions used by save/load,
for example  "MarkSave" (to be found in .../src/main/saveload.c). I
declared them as

external  void MarkSave(SEXP s);

in my code. When I do dyn.load("myLib.so") I get the error

Error in dyn.load(x, as.logical(local), as.logical(now)): unable to load shared
 library "myLib.so":
  myLib.so: undefined symbol: MarkSave

Can't I use R internals other than those visible in $R_HOME/include?

Thanks for some clarifying hints

--  Dr. Joerg Kindermann             GMD - AiS
            German National Research Center for Information Technology
                Schloss Birlinghoven, D-53754 St. Augustin, Germany
                   phone: +49 02241 142437 fax: +49 02241 142342
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