search for: do_as_environment

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

2011 Jan 11
0
[Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption
...://comments.gmane.org/gmane.comp.lang.r.devel/26504 > > Please whoever is interested in fixing this, send your remarks and patches > to the R-devel mailing list. > This looks like the same problem that appeared in Rcpp, an unprotected SEXP in <R>/src/main/envir.c, in the function do_as_environment(), case VECSXP of the switch. Here is modified code that seems to fix the problem, at least under Linux: case VECSXP: { Rprintf("VECSXP as.environment\n"); /* implement as.environment.list() {isObject(.) is false for a list} */ SEXP sp = PROTECT(lang4(install("list2e...