Displaying 1 result from an estimated 1 matches for "myrho".
2005 Aug 17
2
About R variable references
...here are two snippets of code that hopefully make clear what I am
trying to achieve. The code is provided for illustration purposes only
and I did not try to compile it.
Best regards,
Markku Mielityinen
# C CODE
#####################################################################
SEXP myrho = R_GlobalEnv;
SEXP myvariable = R_NilValue;
SEXP myfunction = R_NilValue;
SEXP myinit(SEXP var, SEXP func) {
myvariable = var;
myfunction = func;
return R_NilValue;
}
SEXP myexec(/* probably has some parameters that are omitted in this
example */) {
int state;
SEXP thecall;
/* do some wo...