Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
FunModule.C
Go to the documentation of this file.
1//script to test pass function into a module
2#include<TRInterface.h>
3#include<TMath.h>
4
5std::string hello( std::string who, std::string msg){
6 std::string result( "hello " ) ;
7 result += who ;
8 result += msg;
9 return result ;
10}
11
13 ROOT::R::function( "hello", &hello );
14}
15
17{
19 r.SetVerbose(kFALSE);
20 r["rootr"]<<LOAD_ROOTR_MODULE(rootr);
21 r<<"print(rootr$hello('world ','ROOTR'))";
22}
std::string hello(std::string who, std::string msg)
Definition FunModule.C:5
void FunModule()
Definition FunModule.C:16
#define ROOTR_MODULE
Definition RExports.h:179
#define LOAD_ROOTR_MODULE(NAME)
Definition RExports.h:193
constexpr Bool_t kFALSE
Definition RtypesCore.h:94
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
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 function(const Char_t *name_, T fun, const Char_t *docstring=0)
Definition RExports.h:167