I am running a script with fairly simple series of operations, converting some dates to Unix time, then adding these together.
There is no recursion here, but I am getting a
Error: C stack usage is too close to the limit
I can reproduce this, just doing the sum 1550793610 + 10. I have no idea why this is causing an error.
I am running this on a Linux server running Rstudio server. I have tried restarting R, terminating R, and setting my ulimit to unlimited. On my windows laptop I can't reproduce the error, but I can't run the whole script on my laptop so need to get it running on the server.
Just to add, I tried going 1550793610*10 and this was fine.
Thanks for the comments all. I thought it was something creating nested function calls, but the only operation that would trigger it was any addition even 1+1. I’m familiar will all the packages I was using and there was nothing that would change the behaviour of +.
In the end I restarted R which didn’t initially solve the problem, then I rebooted the server, and then everything ran fine. So I’m marking this as solved and putting it down to a freak error!
Thanks again everyone for your comments.