[Rcpp-devel] Rcpp::exception + threads = disaster
Joshua N Pritikin
jpritikin at pobox.com
Sat Feb 8 21:23:42 CET 2020
On Sat, Feb 08, 2020 at 02:55:06PM -0500, JJ Allaire wrote:
> Yes, the only reason to use Rcpp::stop is because you want a C++
> exception translated safely into an Rf_error at the SEXP call level. If
> you are trying to signal an error from a background thread you would
> want to use a regular C++ exception rather than Rcpp::stop.
I'm disappointed that there is no interest in making Rcpp::stop work
in both contexts.
At a minimum, the distinct uses of C++ exceptions and Rcpp::stop
should be documented better.
Joshua N. Pritikin, Ph.D.
Virginia Institute for Psychiatric and Behavioral Genetics
Virginia Commonwealth University
PO Box 980126
800 E Leigh St, Biotech One, Suite 1-133
Richmond, VA 23219
More information about the Rcpp-devel