First of all, I just installed ROOT v 6 first time and it looks really exciting, specially with its language bindings, and cling .
I was just going through tutorial examples from tutorials/r folder, to check how ROOTR works.
All the C macros work good. However when I try to run R scripts, I get following errors:
Loading required package: ROOT
Error in loadNamespace(name) : there is no package called ‘ROOT’
In addition: Warning message:
In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, :
there is no package called ‘ROOT’
I am trying to run these R scripts in R console.
Do I need to modify my R installation in some way ? How these example R scripts are supposed to be run ?
Thanks for the compliments. What we have done so far is calling R from ROOT. These tutorials you are referring are calling ROOT from R. I suspect these tutorials are not ready as they are. I pass the question to our specialist.
Sorry about that , but ROOT-R is an interface to call R from ROOT,
the scripts to run ROOT from R was just a basic prototype but is not full implemented and those examples
will be removed from repository soon.
I hope I can to write a module to run ROOT from R in the near future.
Ok. No probs.
I have 2 more questions.
- I will be interested in calling machine learning modules of R from ROOT.
Is it currently possible ?
- As per as I understand (and I understand very little ), in R, data being analysed is memory resident. So if I wanted to analyse large data in ROOT format (TTree s) using R packages (e.g. machine learning modules of R), what kind of cares do I have to take ?
do you want to use machine learning tools using TMVA? or do you want to use it directly
in R from ROOT?
Yes, is possible. using TMVA we have some methods or you can to call it directly.
Yes, you can to map the tree in the class ROOT::R::TDataFrame
github.com/root-mirror/root/blo … ataFrame.h