[R] return from nested function?

Seth Falcon sfalcon at fhcrc.org
Wed Mar 2 16:14:09 CET 2005


On Mar 2, 2005, at 4:13 AM, Jan T. Kim wrote:
>
> I may be dumb today, but doesn't that beg the question of how does g
> cause f not to return?

No, I think my post doesn't really help you.  In the context of a 
recursive function, the code I posted provides a way to jump out of the 
recursion which is a cousin of what you are looking for.

I wonder if try or tryCatch might be what you want?

cheers,

+ seth




More information about the R-help mailing list