Contrary to S[-plus], dyn.load(.) in R only allows the dynamic loading
of shared libraries.
Insofar, dyn.load(.) maybe should have been called
dyn.load.shared() instead.
>>>>> "J" == J Andy Royle <jar at
oriole.er.usgs.gov> writes:
J> I'm running R 0.63 on Redhat 5.1 and when I attempt to load a
J> fortran routine I get:
>> dyn.load("/home/royle/Rstuff/varna.o")
J> Error in dyn.load(x) : unable to load shared library
J> "/home/royle/Rstuff/varna.o"
J> this function varna.o was compiled with:
J> gcc -c varna.f
J> with no errors or warnings.
You have to add (to the above)
R SHLIB varna.o -o varna.so
or even do this at once:
R SHLIB varna.c
and then
dyn.load("....../varna.so")
----
In addition to
help(dyn.load),
help(SHLIB),
see also in RHOME/demos/dynload and look at the Makefile.
Martin Maechler <maechler at stat.math.ethz.ch>
http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum SOL G1; Sonneggstr.33
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1086 <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._