policytree icon indicating copy to clipboard operation
policytree copied to clipboard

Stop policy_tree in R

Open MCKnaus opened this issue 5 years ago • 1 comments

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.

MCKnaus avatar Oct 21 '20 06:10 MCKnaus

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 avatar Oct 22 '20 00:10 erikcs