12#ifndef ROOT_R_TRInterface
13#define ROOT_R_TRInterface
195 template <
class T>
operator T()
215 const Bool_t verbose =
false,
const Bool_t interactive =
true);
260 fR->assign<
T>(var,
name.Data());
#define R(a, b, c, d, e, f, g, h, i)
#define ClassDef(name, id)
ROOT::R::TRInterface & operator<<(ROOT::R::TRInterface &r, TString code)
This is a class to create DataFrames from ROOT to R.
This is a class to pass functions from ROOT to R.
Binding & operator=(const TRFunctionExport &fun)
Binding(TRInterface *rnt, TString name)
Binding & operator<<(const TRDataFrame &df)
Binding & operator>>(T &var)
Binding & operator<<(const TRFunctionExport &fun)
Binding & operator=(const TRDataFrame &df)
Binding & operator=(const T &data)
Binding & operator=(const Binding &obj)
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
TRInterface(const Int_t argc=0, const Char_t *argv[]=NULL, const Bool_t loadRcpp=true, const Bool_t verbose=false, const Bool_t interactive=true)
The command line arguments are by deafult argc=0 and argv=NULL, The verbose mode is by default disabl...
void Execute(const TString &code)
Method to eval R code.
static TRInterface & Instance()
static method to get an TRInterface instance reference
void SetVerbose(Bool_t status)
Method to set verbose mode, that produce extra output.
Bool_t IsInstalled(TString pkg)
Method to verify if a package is installed.
Bool_t Require(TString pkg)
Method to load an R's package.
Int_t Eval(const TString &code, TRObject &ans)
Method to eval R code and you get the result in a reference to TRObject.
void Interactive()
Method to get a R prompt to work interactively with tab completation support.
void ProcessEventsLoop()
Init event loop in a thread to support actions in windows from R graphics system.
Binding operator[](const TString &name)
void Assign(const T &var, const TString &name)
Template method to assign C++ variables into R enviroment.
static TRInterface * InstancePtr()
static method to get an TRInterface instance pointer
Bool_t Install(TString pkg, TString repos="http://cran.r-project.org")
Method to install an R's package.
This is a class to get ROOT's objects from R's objects.
Mother of all ROOT objects.
virtual void Execute(const char *method, const char *params, Int_t *error=0)
Execute method on this object with the given parameter string, e.g.
Namespace for new ROOT classes and functions.