RE: R-beta: question on dyn.loaded code

Buyukisik, Osman (Osman.Buyukisik@ae.ge.com)
Thu, 26 Feb 1998 11:59:12 -0500


Message-Id: <0302875C631AD11198DE00600806C63747A013@ev009msxaege.ae.ge.com>
From: "Buyukisik, Osman (GEAE)" <Osman.Buyukisik@ae.ge.com>
To: r-help@stat.math.ethz.ch,
Subject: RE: R-beta: question on dyn.loaded code
Date: Thu, 26 Feb 1998 11:59:12 -0500

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@zidsrv.sci.uni-klu.ac.at]
> Sent: 	Thursday, February 26, 1998 10:35 AM
> To: 	r-help@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._