12 #ifndef ROOT_R_TRInterface 13 #define ROOT_R_TRInterface 195 template <
class T>
operator T()
260 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.
Namespace for new ROOT classes and functions.
static TRInterface * InstancePtr()
static method to get an TRInterface instance pointer
#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
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.
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)
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...
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
const char * Data() const
Binding & operator=(const T &data)