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

Function asStdVectorBool

inst/tinytest/cpp/RObject.cpp:79–85  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

77
78// [[Rcpp::export]]
79std::vector<bool> asStdVectorBool( SEXP x ){
80 std::vector<bool> bv = as< std::vector<bool> >( x );
81 for (size_t i=0; i<bv.size(); i++) {
82 bv[i].flip() ;
83 }
84 return bv ;
85}
86
87// [[Rcpp::export]]
88std::vector<std::string> asStdVectorString( SEXP x){

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected