search for: simplecall

Displaying 2 results from an estimated 2 matches for "simplecall".

2007 Jun 08
1
Question about Running C code from R
...is. I've been trying to find the problem here for about a month and need some help! I am trying to work out how to run a C program from an R script. Rather than try the C program directly, I'm trying to get a much simpler piece of code to work as a proof-of-concept. Here's the C code (simplecall.c): *********************************************************************************************** #include <stdio.h> #include <Rinternals.h> #include <R_ext/Rdynload.h> int Rc(int a) { return (a+3); } SEXP Rc2(SEXP a) { return(18); //LINE A // return(ScalarReal(REAL(a)[0]+...
2001 Jul 11
1
.Call and Mandrake 8.0 (PR#1020)
Full_Name: Ludovic Cottret Version: R 1.3.0 OS: Linux Submission from: (NULL) (157.136.20.138) I have a R function which call a C function by the instruction ".Call". The first time I call the R function in a R session, it perfectly runs. But the next times, R returns this error message : Error in .Call("", bankpath, accn, indexpath, key, beg, end) : .Call function