3 const char*
hello( std::string who ) {
4 std::string result(
"hello ") ;
6 return result.c_str() ;
9 int main(
int argc,
char *argv[]) {
13 R[
"hello"] = Rcpp::InternalFunction( &
hello );
14 std::string result = R.
parseEval(
"hello('world')") ;
15 std::cout <<
"hello( 'world') = " << result << std::endl ;
int main(int argc, char *argv[])
int parseEval(const std::string &line, SEXP &ans)
const char * hello(std::string who)