Displaying 2 results from an estimated 2 matches for "myexec".
Did you mean:
myexe
2005 Aug 17
2
About R variable references
...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 work, then set the state and call a callback function
if necessary */
PROTECT(myvariable);
INTEGER(myvariable)[0] = state;
UNPROTECT(1);
if(state) {
PROTECT(thecall = LCONS(myfunc...
2001 Nov 21
0
reading data from stdin
Hello s/r users!
I've been digging around in the s- and r-mailing lists,
but i actually didn't find any answer to my question.
So here it is:
How can i realize the following:
myexec | R r_script > outfile.txt
with
myexec some executable writing data to stdout
"cat data.txt" can serve as a test
R is supposed to be "Rcmd BATCH" or "S BATCH" in
case of S+6
r_script...