R-beta: dyn.load: incompatability between R and S

Jonathan Myles jonathan.myles at mrc-bsu.cam.ac.uk
Thu Jul 24 18:56:08 CEST 1997

I have  C routines in a collection of files


... etc , where the third file includes functions which call
functions in the second.

In S, the function

> gload


works fine.

However, in R although the first two statements execute OK, the third

> dyn.load("/homef/jonm/postdocs/GLMM_project/Cprogs/nn/ars.o")
Error in dyn.load(x) : ld.so.1: /scratch0/jonm/R-0.50-a1/bin/R.binary: fatal: re
location error: symbol not found: unitexp: referenced in /homef/jonm/postdocs/GL

"unitexp" is a program in 


so presumably the problem is that S "knows" about functions already loaded
by earlier dyn.load statements but R doesn't.

Is there any answer other than putting everything into one
huge file?


Jonathan Myles

Dr. Jonathan Myles         e-mail:jonathan.myles at mrc-bsu.cam.ac.uk
MRC Biostatistics Unit     Tel. 01223 330371
Institute of Public Health FAX  01223 330388
University Forvie Site
Robinson Way
CB2 2SR                   
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