25#include <Rcpp/internal/Exporter.h>
33 const char*
fmt =
"Expecting a single value: [extent=%i].";
38 typedef typename ::Rcpp::traits::storage_type<RTYPE>::type STORAGE;
50 const char*
fmt =
"Expecting a single string value: "
51 "[type=%s; extent=%i].";
52 throw ::Rcpp::not_compatible(
fmt,
63 return std::wstring(y, y+
strlen(y));
76 const char*
fmt =
"Expecting a single string value: "
77 "[type=%s; extent=%i].";
78 throw ::Rcpp::not_compatible(
fmt,
87 ::Rcpp::traits::Exporter<T>
exporter(x);
125 return const_cast<T
>(*obj);
159 template <
typename T>
#define RCPP_DEBUG_1(fmt, MSG)
#define DEMANGLE(__TYPE__)
T as(SEXP x, ::Rcpp::traits::r_type_primitive_tag)
const char * check_single_string(SEXP x)
void * as_module_object_internal(SEXP obj)
object< T > as_module_object(SEXP x)
T as_string(SEXP x, Rcpp::traits::true_type)
traits::remove_const_and_reference< T >::type bare_as(SEXP x)
remove_const< typenameremove_reference< T >::type >::type type