Skip to content
Prev 317730 / 398506 Next

detecting entry into a recursive function

On 02/17/2013 12:55 PM, Benjamin Tyner wrote:
Hi Ben,
There are a number of ways to do this, from simply having a flag that 
has one value at the initial call to the function and another value when 
the function calls itself. for an example of this, see the code for the 
"sizetree" function in the plotrix package, in particular the 
"firstcall" argument.

Jim