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

Function S4_proxycoerce

inst/tinytest/cpp/S4.cpp:86–93  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

84
85// [[Rcpp::export]]
86std::vector<double> S4_proxycoerce(S4 x_) {
87 NumericVector x(x_.slot("data"));
88 std::vector<double> xx( x.size() );
89 for (int i=0; i < x.size(); ++i) {
90 xx[i] = x[i];
91 }
92 return xx;
93}

Callers

nothing calls this directly

Calls 2

slotMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected