| 401 | } |
| 402 | |
| 403 | inline void forward_rcpp_exception_to_r(const Rcpp::exception& ex) { |
| 404 | SEXP stop_sym = Rf_install( "stop" ) ; |
| 405 | Rcpp::Shield<SEXP> condition( exception_to_r_condition(ex) ); |
| 406 | Rcpp::Shield<SEXP> expr( Rf_lang2( stop_sym , condition ) ) ; |
| 407 | Rf_eval( expr, R_GlobalEnv ) ; |
| 408 | } |
| 409 | |
| 410 | |
| 411 | #endif |
nothing calls this directly
no test coverage detected