search for: makecenv

Displaying 3 results from an estimated 3 matches for "makecenv".

2015 Aug 12
1
enableJIT in Rprofile leads to 'not a proper evaluation environment' on startup
...---end--------------->8--- in ~/.Rprofile for years; now that I upgraded to 3.2.1 I get this on startup: --8<---------------cut here---------------start------------->8--- Error in frameTypes(env) : not a proper evaluation environment Calls: <Anonymous> -> <Anonymous> -> makeCenv -> structure -> frameTypes > q() Warning message: restarting interrupted promise evaluation --8<---------------cut here---------------end--------------->8--- I don't see anything relevant in NEWS. Replacing 3 with 2 in compiler::enableJIT(3) removes the error. However, I would...
2011 Jun 28
1
doMC - compiler - concatenate an expression vector into a single expression?
...aluating a compiled expression instead of the original R expression: # from doMC:::doMC ... c.expr <- comp(expr, env = envir, options = list(suppressUndefined = TRUE)) and for R >= 2.13.0 comp is defined as compiler::compile: function (e, env = .GlobalEnv, options = NULL) { cenv <- makeCenv(env) cntxt <- make.toplevelContext(cenv, options) cntxt$env <- addCenvVars(cenv, findLocals(e, cntxt)) genCode(e, cntxt) } <environment: namespace:compiler> My guess is that the function findLocals or genCode can not handle a 2-length expression vector. Maybe somebody...
2011 Jun 29
0
[R-sig-hpc] doMC - compiler - concatenate an expression vector into a single expression?
...on: >> >> # from doMC:::doMC ... >> c.expr<- comp(expr, env = envir, options = list(suppressUndefined = TRUE)) >> >> and for R>= 2.13.0 comp is defined as compiler::compile: >> function (e, env = .GlobalEnv, options = NULL) >> { >> cenv<- makeCenv(env) >> cntxt<- make.toplevelContext(cenv, options) >> cntxt$env<- addCenvVars(cenv, findLocals(e, cntxt)) >> genCode(e, cntxt) >> } >> <environment: namespace:compiler> >> >> My guess is that the function findLocals or genCode can n...