search for: rc2inr

Displaying 1 result from an estimated 1 matches for "rc2inr".

Did you mean: cinr
2007 Jun 08
1
Question about Running C code from R
...ut together from various websites and guesses: *********************************************************************************************** dll=dyn.load("Project1.exe") syms=getNativeSymbolInfo(c("Rc","Rc2"),dll) RcInR=function(x) { .Call(dll$Rc,as.numeric(x)) } Rc2InR=function(x) { .Call(dll$Rc2,as.numeric(x)) } i1=4;j1=Rc(i1) cat("\nUsing Rc from R: ",i1,"+3=",j1," - OK so far.\n") m1=6;n1=Rc2(m1) cat("\nUsing Rc2 from R: ",m1,"+12=",n1," - Doing well.\n"); *****************************************...