RInside Version 0.2.12
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
rinside_axionator.cpp
Go to the documentation of this file.
1 #include <RInside.h>
2 
3 const char* hello( std::string who ) {
4  std::string result( "hello ") ;
5  result += who ;
6  return result.c_str() ;
7 }
8 
9 int main(int argc, char *argv[]) {
10 
11  RInside R(argc, argv);
12 
13  R["hello"] = Rcpp::InternalFunction( &hello );
14  std::string result = R.parseEval("hello('world')") ;
15  std::cout << "hello( 'world') = " << result << std::endl ;
16 
17  return 0;
18 }
int main(int argc, char *argv[])
int parseEval(const std::string &line, SEXP &ans)
Definition: RInside.cpp:308
const char * hello(std::string who)