On 11 December 2014 at 12:02, Amit Gupta wrote: | Hi all, | | Can anyone please help me in this.
[...] | When I replace the above code with | | std::string txt = "m <- c(1,2,3,4,5);" | "print(mean(m));"; | R.parseEval(txt); | | This code works perfectly printing the mean of the vector. | | My guess is that the problem is coming somewhere in typecasting the output | of R.parseEval to double etc. | | Can someone please look into this. Thanks A quick glance into examples/standard/*.cpp reveals that files sample7.cpp sample10.cpp both assign to a double. What happens if you run those? Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel