16 std::cout <<
"hello " <<
s.Data() << std::endl;
36 if (
type ==
"Export") {
37 std::cout <<
"-----------------------" << std::endl;
38 std::cout <<
"Testing FunctionExport" << std::endl;
39 std::cout <<
"-----------------------" << std::endl;
41 r <<
"print(funv(c(2,3)))";
44 r <<
"cat(funm(matrix(c(1,2,3,4),2,2)))";
48 r <<
"cat(funs('ROOTR'))";
51 r <<
"print(DiLog(2))";
53 r <<
"x <- seq(0,10,0.01)";
55 r <<
"for(i in seq(along=x)) { \
62 r <<
"print(fun4(1))";
64 std::cout <<
"-----------------------" << std::endl;
65 std::cout <<
"Testing FunctionImport " << std::endl;
66 std::cout <<
"-----------------------" << std::endl;
86 r<<
"test <- function() x11";
95 options(
"device='x11'");
Double_t fun3(Double_t *x, Double_t *par)
Double_t fun4(Double_t x)
void Functions(TString type="Import")
This is a class to create DataFrames from ROOT to R.
This is a class to pass functions from ROOT to R.
void SetFunction(T fun)
function to assign function to export, template method that supports a lot of function's prototypes
This is a class to pass functions from ROOT to R.
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.
This is a class to get ROOT's objects from R's objects.
Rcpp::internal::NamedPlaceHolder Label
SEXP wrap(const TString &s)
static constexpr double s
Double_t DiLog(Double_t x)
Modified Struve functions of order 1.