[R] load of methods package causes strange return values

Rob Lee rlee at fpcc.net
Fri Nov 1 19:00:00 CET 2002


I have a small function that calls a shared-object(built on Fortran 
sources):
>dyn.load("mdl.so")
>mdl(notCensored, censored)
$mean
14.85  #This is correct

Here's the strange part - when I load the methods library, my function 
starts returning garbage!  No other library seems to have this impact.
>dyn.load("mdl.so")
>library(methods)
>mdl(notCensored, censored)
$mean
1.011574e-34  #This bogus!

I've beat my head on the wall trying to figure this one out.

-R



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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