12 #ifndef ROOT_R_TRInterface
13 #define ROOT_R_TRInterface
15 #ifndef ROOT_R_TRObject
19 #ifndef ROOT_R_TRDataFrame
23 #ifndef ROOT_R_TFunctionExport
27 #ifndef ROOT_R_TFunctionImport
205 template <
class T>
operator T()
224 TRInterface(
const int argc = 0,
const char *argv[] =
NULL,
const bool loadRcpp =
true,
const bool verbose =
false,
const bool interactive =
true);
265 fR->assign<
T>(var, name.
Data());
XYZVector ans(TestRotation const &t, XYZVector const &v_in)
void Execute(const TString &code)
Method to eval R code.
Bool_t IsInstalled(TString pkg)
Method to verify if a package is installed.
static TRInterface * InstancePtr()
static method to get an TRInterface instance pointer
TRInterface(const int argc=0, const char *argv[]=NULL, const bool loadRcpp=true, const bool verbose=false, const bool interactive=true)
The command line arguments are by deafult argc=0 and argv=NULL, The verbose mode is by default disabl...
const char * Data() const
#define ClassDef(name, id)
void Assign(const T &var, const TString &name)
Template method to assign C++ variables into R enviroment.
Binding & operator<<(const TRFunctionExport &fun)
Bool_t Install(TString pkg, TString repos="http://cran.r-project.org")
Method to install an R's package.
Binding & operator>>(T &var)
Bool_t Require(TString pkg)
Method to load an R's package.
This is a class to get ROOT's objects from R's objects
void ProcessEventsLoop()
Init event loop in a thread to support actions in windows from R graphics system. ...
Binding & operator=(const Binding &obj)
void Interactive()
Method to get a R prompt to work interactively with tab completation support.
void SetVerbose(Bool_t status)
Method to set verbose mode, that produce extra output.
static TRInterface & Instance()
static method to get an TRInterface instance reference
Binding operator[](const TString &name)
Mother of all ROOT objects.
Binding(TRInterface *rnt, TString name)
Binding & operator<<(const TRDataFrame &df)
ROOT::R::TRInterface & operator<<(ROOT::R::TRInterface &r, TString code)
Int_t Eval(const TString &code, TRObject &ans)
Method to eval R code and you get the result in a reference to TRObject.
Binding & operator=(const TRFunctionExport &fun)
This is a class to pass functions from ROOT to R
Binding & operator=(const TRDataFrame &df)
This is a class to create DataFrames from ROOT to R
Binding & operator=(const T &data)