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

Function testNullableString

inst/tinytest/cpp/misc.cpp:221–226  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

219
220// [[Rcpp::export]]
221String testNullableString(Rcpp::Nullable<Rcpp::String> param = R_NilValue) {
222 if (param.isNotNull())
223 return String(param);
224 else
225 return String("");
226}
227
228// [[Rcpp::export]]
229void messageWrapper(SEXP s) {

Callers

nothing calls this directly

Calls 2

isNotNullMethod · 0.80
StringClass · 0.50

Tested by

no test coverage detected