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

Method set

inst/include/Rcpp/proxy/FieldProxy.h:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 return Rcpp_fast_eval( call, R_GlobalEnv ) ;
47 }
48 void set(SEXP x ) {
49 SEXP dollarGetsSym = Rf_install( "$<-");
50 Shield<SEXP> str(Rf_mkString(field_name.c_str()));
51 Shield<SEXP> call(Rf_lang4(dollarGetsSym, parent, str, x));
52 parent.set__( Rcpp_fast_eval( call, R_GlobalEnv ) );
53 }
54 } ;
55
56 class const_FieldProxy : public GenericProxy<const_FieldProxy> {

Callers

nothing calls this directly

Calls 2

Rcpp_fast_evalFunction · 0.85
set__Method · 0.45

Tested by

no test coverage detected