Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for argument to specify maximum time by which each expression should be allowed to run #137

Open
tomwenseleers opened this issue Oct 29, 2023 · 0 comments

Comments

@tomwenseleers
Copy link

tomwenseleers commented Oct 29, 2023

Was just wondering if it would be possible to allow for an argument to specify the maximum time by which each expression should be allowed to run? If I benchmark a given expression over a grid of values I now often run into problems whereby some combinations take a very long time to finish & I would like those to be terminated after a given time.

I presume this could be done with some of the solutions mentioned here, https://stackoverflow.com/questions/7891073/time-out-an-r-command-via-something-like-try, e.g. using R.utils::withTimeout() or setTimeLimit? (though these functions may only be able to interrupt R and not C or C++ coded functions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant