How do I stop the R function if it runs for more than 30 minutes?

I am testing my code with several methods.

If any method / function, say, glm()

takes more than 30 minutes, I want to kill that function and move on to the next one without interrupting my R session.

In other words, is there a way to set a time limit on the R function and move on to the next step?

+3
function r


source to share


No one has answered this question yet

See similar questions:

37
Output the R command via something like try ()

or similar:

650
How do I get the function name as a string?
543
How do I pass all the arguments passed to my bash script to my function?
466
How do I view the source code for a function?
429
How can I pass a function as a parameter in C?
123
Is the "* apply" family really not vectorized?
37
Output the R command via something like try ()
21
Function timeout in PHP
2
Spring MVC controller time constraint
0
Mysql function remove words with less than 3 characters
0
How to make more than one graph using R-Apache



All Articles
Loading...
X
Show
Funny
Dev
Pics