search for: ressexp

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

2004 Jun 14
5
mkChar can be interrupted
...ented in R-exts .Call() should not be interruptible by Ctrl-C. However the following code, which spends most of its time inside mkChar, turned out to be interruptible on RH-7.3 R-1.8.1 gcc-2.96: #include <Rinternals.h> #include <R.h> SEXP foo0(const SEXP nSexp) { int i, n; SEXP resSexp; if (!isInteger(nSexp)) error("wrong arg type\n"); n = asInteger(nSexp); resSexp = PROTECT(allocVector(STRSXP, n)); Rprintf("!!!time to interrup!!!\n"); for (i=0; i<n; ++i) { SET_STRING_ELT(resSexp, i, mkChar("foo")); } Rprintf("en...
2008 Apr 14
1
clean-up actions after non-local exits
...ave an assignment expression, all of those > > > > contain points where an interrupt could be checked for. > > > > > > These are not relevant since Ctrl-C is pressed when the > > code is inside > > > for (i=0; i<n; ++i) { > > > SET_STRING_ELT(resSexp, i, mkChar("foo")); > > > } > > > > > > Just look at the way I deliver the signal. > > > > > > ______________________________________________ > > > R-help@stat.math.ethz.ch<mailto:R-help@stat.math.ethz.ch?Subject=RE:%20%5BR%5D%20mkC...