R-beta: question on dyn.loaded code
    Buyukisik, Osman (GEAE) 
    Osman.Buyukisik at ae.ge.com
       
    Thu Feb 26 17:59:12 CET 1998
    
    
  
Using R0.61.1 Alpha on hpux10.20 with patches I get :
> dyn.load("fn1.sl")
> dyn.load("fn2.sl")
> .C("negtwice",as.integer(2))
[[1]]
[1] -4
> .C("twice",as.integer(2))
[[1]]
[1] 4
I had to type the functions as "int" rather than void.
I will try the same at home on my redhat 4.2 linux box.
Cheers,
Osman
> ----------
> From: 	Albrecht Gebhardt[SMTP:agebhard at zidsrv.sci.uni-klu.ac.at]
> Sent: 	Thursday, February 26, 1998 10:35 AM
> To: 	r-help at stat.math.ethz.ch
> Subject: 	R-beta: question on dyn.loaded code
> 
> Hi,
> 
> when designing libraries for R, is it possible to call C/Fortran 
> subroutines from other dynamically loaded code?
> 
> 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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