ROOT v 6.06 Ubuntu 14.04 LTS , ROOTR-tutorials R script not working

First of all, I just installed ROOT v 6 first time and it looks really exciting, specially with its language bindings, and cling :smiley: :smiley: =D> =D>.
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:

> source("TFileRead.R")
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.

Hi Chinmay,
Sorry about that #-o , 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.

  1. I will be interested in calling machine learning modules of R from ROOT.
    Is it currently possible ?
  2. As per as I understand (and I understand very little :exclamation: :frowning: ), 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 ?

Hi Chinmay,
do you want to use machine learning tools using TMVA? or do you want to use it directly
in R from ROOT?

  1. Yes, is possible. using TMVA we have some methods or you can to call it directly.

  2. Yes, you can to map the tree in the class ROOT::R::TDataFrame … ataFrame.h