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

Stop policy_tree in R #58

Open
MCKnaus opened this issue Oct 21, 2020 · 1 comment
Open

Stop policy_tree in R #58

MCKnaus opened this issue Oct 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@MCKnaus
Copy link

MCKnaus commented Oct 21, 2020

I found it impossible to stop a running policy_tree without crashing R. You could consider to call Rcpp::checkUserInterrupt() from time to time in the C++ functions or something related.

@swager swager added the bug Something isn't working label Oct 21, 2020
@erikcs
Copy link
Member

erikcs commented Oct 22, 2020

Rcpp::checkUserInterrupt() was not added since the solver was supposed to be language agnostic, but we can add it with #ifdef's for R at compile time if there is interest.

If running R from the console it is easy to detach from the process with CTRL+Z then terminate it.

@erikcs erikcs added enhancement New feature or request and removed bug Something isn't working labels Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants