infinye series using tryCatch

Here i am getting output as required but i don't want the error to display in my code. This error is as shown

  Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
    [1]Error: evaluation nested too deeply: infinite recursion / options(expressions=)?
   : evaluation nested too deeply: infinite recursion / options(expressions=)?

What should funn(2) return? Do you want to get many, many numbers? Are you only having trouble catching the stack overflow error?

Also, can you tell me more about what you mean in your last sentence - list vs. local variable?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.