[Rcpp-devel] Rcpp catching a domain error
devin.heer at gmail.com
Thu Dec 11 16:03:48 CET 2014
My Rcpp source file contains a gsl_sf_hyperg_2F1() function, and for some
input values to this function the return value is "NaN", which leads in
RStudio to an abortion error.
In order to avoid abortion errors, I try to implement a try/catch exception
using namespace Rcpp;
gsl_sf_hyperg_2F1(1,1,1.1467003,1); // abortion error since not
std::cout << "Domain Error occurred!" << std::endl;
This seems to be wrong, since it still causes an abortion error in RStudio.
I appreciate any input
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel