17   r<<
"x<-seq(0,2*pi,by=.1)";
 
   18   r<<
"c1<-new(TCanvas,'c1','dlnorm')";
 
   19   r<<
"u <-new(TGraph,length(x),x,dlnorm(x))" ;
 
   22   r<<
"c2<-new(TCanvas,'c2','DiLog from TMath')";
 
   23   r<<
"o<- new(TF1,'dilog','TMath::DiLog(x)',0,2*pi)";
 
   26   r<<
"c3<-new(TCanvas,'c3','Custom')";
 
   27   r<<
"i <- new(TF1,'f2','[0]*myFunc([1]*x)',0,2*pi)"; 
 
   28   r<<
"i$SetRange(0,2*pi)";
 
   29   r<<
"i$SetParameter(0,4)";
 
   30   r<<
"i$SetParameter(1,pi/2)";
 
   31   r<<
"print(i$Eval(0))";
 
   32   r<<
"print(i$Eval(c(0,pi)))";
 
Double_t myFunc(Double_t x)
 
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
 
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.