MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / forward_rcpp_exception_to_r

Function forward_rcpp_exception_to_r

inst/include/Rcpp/exceptions.h:403–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403inline 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

Callers

nothing calls this directly

Calls 1

exception_to_r_conditionFunction · 0.85

Tested by

no test coverage detected