[R] Continuation-parsing / trampoline / infinite recursion problem
Bert Gunter
bgunter.4567 at gmail.com
Wed Aug 10 19:15:50 CEST 2016
make_thunk is probably unnecessary and apparently problematic. I think
you could use do.call() instead, as do.call(f,list(...)) .
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Aug 10, 2016 at 9:53 AM, Thomas Mailund <mailund at birc.au.dk> wrote:
>
>> On 10 Aug 2016, at 13:56, Thomas Mailund <mailund at birc.au.dk> wrote:
>>
>> make_thunk <- function(f, ...) f(...)
>
> Doh! It is of course this one:
>
> make_thunk <- function(f, ...) function() f(…)
>
> It just binds a function call into a thunk so I can delay its evaluation.
>
> Sorry
> Thomas
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list