recursiveCalls: Check All Recursive Calls

Description Usage Arguments Details Value Examples

View source: R/recursiveCalls.R

Description

recursiveCalls computes the result of a recursive function call and prints all recursive calls

Usage

1
recursiveCalls(recFunc, ...)

Arguments

...

the parameters of the function to be called

recfunc:

the recursive function to be called without the parenthesis or the arguments; must have at least one recursive function call

Details

This function takes a recursive function and its parameters and returns the result of that function call and also prints all recursive calls. Useful for checking for errors in recursive functions.

Value

the result of calling the input function with the given parameters

Examples

1

cfrusso/ARR documentation built on May 28, 2019, 11:04 p.m.