[Rcpp-devel] RCpp issue (SIGTRAP)
Dirk Eddelbuettel
edd at debian.org
Thu Dec 11 13:20:15 CET 2014
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 | edd at debian.org
More information about the Rcpp-devel
mailing list