I have code Rthat does some data analysis and returns TRUE/FALSE. Sometimes the input is too large and the code just keeps working.
I want the script to track my data analysis code, and if it returns nothing, say 600 seconds, then it stops the current code and does something else.
It will be like pressing a button STOPon R console.
I am aware of STOP, break, exitetc. But they will not be useful, because the code will not reach these statements, because it still starts its data analysis cycle.
source
share