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

Function forward_exception_to_r

inst/include/Rcpp/exceptions.h:396–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

394
395
396inline void forward_exception_to_r(const std::exception& ex){
397 SEXP stop_sym = Rf_install( "stop" ) ;
398 Rcpp::Shield<SEXP> condition( exception_to_r_condition(ex) );
399 Rcpp::Shield<SEXP> expr( Rf_lang2( stop_sym , condition ) ) ;
400 Rf_eval( expr, R_GlobalEnv ) ;
401}
402
403inline void forward_rcpp_exception_to_r(const Rcpp::exception& ex) {
404 SEXP stop_sym = Rf_install( "stop" ) ;

Callers 1

hello_world_exFunction · 0.85

Calls 1

exception_to_r_conditionFunction · 0.85

Tested by

no test coverage detected