Displaying 2 results from an estimated 2 matches for "cenv".
Did you mean:
cent
2011 Jun 28
1
doMC - compiler - concatenate an expression vector into a single expression?
...sists in evaluating 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....
2011 Jun 29
0
[R-sig-hpc] doMC - compiler - concatenate an expression vector into a single expression?
...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...