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

Function testNullableIsUsable

inst/tinytest/cpp/misc.cpp:212–218  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

210
211// [[Rcpp::export]]
212SEXP testNullableIsUsable(const Nullable<NumericMatrix>& M) {
213 if (M.isUsable()) {
214 return M.clone();
215 } else {
216 return R_NilValue;
217 }
218}
219
220// [[Rcpp::export]]
221String testNullableString(Rcpp::Nullable<Rcpp::String> param = R_NilValue) {

Callers

nothing calls this directly

Calls 2

isUsableMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected