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 <https://gitlab.com/ferreum/trampoline>.

Package details

AuthorRussell Dinnage [aut, cre, cph] (<https://orcid.org/0000-0003-0846-2819>)
MaintainerRussell Dinnage <r.dinnage@gmail.com>
LicenseMIT + file LICENSE
Version0.1.1
URL https://github.com/rdinnager/trampoline https://rdinnager.github.io/trampoline/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("trampoline")

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.