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

Function asStdVectorRaw

inst/tinytest/cpp/RObject.cpp:69–75  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

67
68// [[Rcpp::export]]
69std::vector<Rbyte> asStdVectorRaw( SEXP x){
70 std::vector<Rbyte> iv = as< std::vector<Rbyte> >( x );
71 for (size_t i=0; i<iv.size(); i++) {
72 iv[i] = 2*iv[i];
73 }
74 return iv ;
75}
76
77
78// [[Rcpp::export]]

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected