policytree
policytree copied to clipboard
Stop policy_tree in R
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.
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.