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)))";
43 r[
"funm"] << ROOT::R::TRFunctionExport(
funm);
44 r <<
"cat(funm(matrix(c(1,2,3,4),2,2)))";
46 r[
"funs"] << ROOT::R::TRFunctionExport(
funs);
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)) { \
59 ROOT::R::TRFunctionExport f4;
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 read(const std::string &file_name)
reading
const char * Data() const
Double_t fun3(Double_t *x, Double_t *par)
void SetFunction(T fun)
function to assign function to export, template method that supports a lot of function's prototypes ...
SEXP wrap(const TString &s)
Double_t DiLog(Double_t x)
The DiLogarithm function Code translated by R.Brun from CERNLIB DILOG function C332.
void Print(Option_t *name="") const
Print the matrix as a table of elements.
This is a class to get ROOT's objects from R's objects
This is a class to pass functions from ROOT to R.
Double_t fun4(Double_t x)
void SetVerbose(Bool_t status)
Method to set verbose mode, that produce extra output.
static TRInterface & Instance()
static method to get an TRInterface instance reference
void Functions(TString type="Import")
Rcpp::internal::NamedPlaceHolder Label
This is a class to pass functions from ROOT to R
This is a class to create DataFrames from ROOT to R