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

Function as_string

inst/include/Rcpp/as.h:60–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58
59
60 template <typename T> T as_string(SEXP x, Rcpp::traits::true_type) {
61 const char* y = check_single_string(x);
62 return std::wstring(y, y+strlen(y));
63 }
64
65 template <typename T> T as_string(SEXP x, Rcpp::traits::false_type) {
66 return check_single_string(x);

Callers

nothing calls this directly

Calls 1

check_single_stringFunction · 0.85

Tested by

no test coverage detected