12 #ifndef ROOT_R_RExports 13 #define ROOT_R_RExports 40 #pragma GCC diagnostic ignored "-Wunknown-pragmas" 41 #pragma GCC diagnostic ignored "-Wshadow" 42 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" 43 #pragma GCC diagnostic ignored "-Wunused-parameter" 44 #pragma GCC diagnostic ignored "-Woverloaded-virtual" 45 #pragma GCC diagnostic ignored "-Wextra" 46 #pragma GCC diagnostic ignored "-Wignored-qualifiers" 54 #include<RcppCommon.h> 73 return TString(::Rcpp::as<std::string>(s).c_str());
101 template<
class T,
size_t i> std::array<T, i>
as(SEXP &obj)
103 std::vector<T> v = Rcpp::as<std::vector<T> >(obj);
105 std::copy(v.begin(), v.end(), a.begin());
110 template <
typename T,
size_t i>
111 class Exporter<
std::array<T, i> > {
115 t = Rcpp::as<T, i>(
x);
117 std::array<T, i>
get()
127 #if !defined(R_Version) 128 #define R_Version(v,p,s) ((v * 65536) + (p * 256) + (s)) 131 #include<Rcpp/Named.h> 132 #undef HAVE_UINTPTR_T 139 template<
class T>
class class_:
public Rcpp::class_<T> {
152 extern Rcpp::internal::NamedPlaceHolder
Label;
158 #define ROOTR_MODULE RCPP_MODULE 159 #define ROOTR_EXPOSED_CLASS RCPP_EXPOSED_CLASS 162 #define ROOTR_EXPOSED_CLASS_INTERNAL(CLASS)\ 167 RCPP_EXPOSED_CLASS_NODECL(ROOT::R::CLASS) 172 #define LOAD_ROOTR_MODULE(NAME) Rf_eval( Rf_lang2( ( ROOT::R::ModuleSymRef == NULL ? ROOT::R::ModuleSymRef = Rf_install("Module") : ROOT::R::ModuleSymRef ), _rcpp_module_boot_##NAME() ), R_GlobalEnv ) std::array< T, i > as(SEXP &obj)
Namespace for new ROOT classes and functions.
#define R(a, b, c, d, e, f, g, h, i)
VARIABLE_IS_NOT_USED SEXP ModuleSymRef
void function(const Char_t *name_, T fun, const Char_t *docstring=0)
This is a class to get ROOT's objects from R's objects
This is a class to pass functions from ROOT to R.
SEXP wrap(const ROOT::R::TRFunctionImport &o)
class_(const Char_t *name_, const Char_t *doc=0)
std::vector< TString > TVectorString
static constexpr double s
This is a class to support deprecated method to pass function to R's Environment, based in Rcpp::Inte...
Rcpp::internal::NamedPlaceHolder Label
This is a class to pass functions from ROOT to R
This is a class to create DataFrames from ROOT to R
const char * Data() const