Displaying 2 results from an estimated 2 matches for "is_promise".
Did you mean:
is_precise
2017 Jul 31
0
force promises inside lapply
...e
>> 'evaled' field set to TRUE and the 'value' field set to the
>> result of evaluating 'code' in 'env'.
>>
>> > f <- function(x, force) {
>> if (force) force(x)
>> if (pryr::is_promise(x)) promise_info(x)
>> else "not a promise"
>> }
>> > str(f(log(-1), force=FALSE))
>> List of 4
>> $ code : language log(-1)
>> $ env :<environment: R_GlobalEnv>
>> $ eva...
2018 Jan 04
0
Coping with non-standard evaluation in R program analysis
Evan,
The pryr package provides some utilities which may be handy here. In
particular see the function: is_promise.
Also, next time please post in plaintext.
Regards
Ben
> Hello R experts,
>
>
> I plan to develop a tool for dynamic analysis of R programs. I would like to trace function calls at runtime, capturing argument and return values. Following a suggestion made some time ago on this list, m...