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

Function as

inst/include/Rcpp/as.h:42–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 template <typename T> T as(SEXP x, ::Rcpp::traits::r_type_primitive_tag) {
43 return primitive_as<T>(x);
44 }
45
46 inline const char* check_single_string(SEXP x) {
47 if (TYPEOF(x) == CHARSXP) return CHAR(x); // #nocov start

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected