trampoline: Make Functions that Can Recurse Infinitely

Implements a trampoline algorithm for R that let's users write recursive functions that get around R's stack call limitations, enabling theoretically infinite recursion. The algorithm is based around generator function as implemented in the 'coro' package, and is based almost completely on the 'trampoline' module from Python <>.

Package details

AuthorRussell Dinnage [aut, cre, cph] (<>)
MaintainerRussell Dinnage <>
LicenseMIT + file LICENSE
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the trampoline package in your browser

Any scripts or data that you put into this service are public.

trampoline documentation built on Jan. 5, 2022, 1:07 a.m.