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

Function runit_pl_replace

inst/tinytest/cpp/language.cpp:191–200  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

189
190// [[Rcpp::export]]
191Pairlist runit_pl_replace(){
192 Pairlist p ;
193 p.push_back( 1 ) ;
194 p.push_back( 10.0 ) ;
195 p.push_back( 20.0 ) ;
196 p.replace( 0, Named( "first", 1 ) ) ;
197 p.replace( 1, 20.0 ) ;
198 p.replace( 2, false ) ;
199 return p ;
200}
201
202// [[Rcpp::export]]
203int runit_pl_size(){

Callers

nothing calls this directly

Calls 3

NamedFunction · 0.85
replaceMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected