Hi Saptarshi,
See ?SHLIB and ?dyn.load.
HTH,
Josh
--
http://www.fosstrading.com
On Thu, Aug 13, 2009 at 9:01 PM, Saptarshi Guha wrote:
> Essentially I'd like to load the C function into the load table
> After that, I can create an R function
> rboo=function(x) .Call("boo",x)
>
> then user scr
Sorry about the clutter. The answer can be found on Writing R Extensions
"
8.1.3 Registering symbols"
Thank you
Saptarshi Guha
On Thu, Aug 13, 2009 at 10:01 PM, Saptarshi Guha
wrote:
>
> Essentially I'd like to load the C function into the load table
> After that, I can create an R function
Essentially I'd like to load the C function into the load table
After that, I can create an R function
rboo=function(x) .Call("boo",x)
then user script cann call rboo
Hope that clarifies things.
Thanks in advance
Saptarshi Guha
On Thu, Aug 13, 2009 at 9:07 PM, Saptarshi Guha wrote:
> Hello,
Hello,
I'm not sure how to go about this. Suppose I have a function
SEXP boo(SEXP x){
//do something
}
Also, I have an executable which embeds R in itself. I would like to provide
a R function to user code to call that calls 'boo' e.g
##user supplied expression that is given to me
x<-1
boo(x)