Re: [Rcpp-devel] RCpp issue (SIGTRAP)

2014-12-11 Thread Dirk Eddelbuettel
Amit, Please see http://en.wikipedia.org/wiki/Minimal_Working_Example http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example and submit something reproducible. Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __

Re: [Rcpp-devel] RCpp issue (SIGTRAP)

2014-12-11 Thread Amit Gupta
Hi Dirk , thanks for your reply. When i run the sample 7 as a standalone program, (I mean executing ./rinside_sample7 ) , the assignment to C++ double works fine *double d1 = Rcpp::as< double >(R.parseEval(txt));* and I get the desired output. But when I run the same set of commands * txt = "

Re: [Rcpp-devel] RCpp issue (SIGTRAP)

2014-12-11 Thread Dirk Eddelbuettel
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

Re: [Rcpp-devel] RCpp issue (SIGTRAP)

2014-12-10 Thread Amit Gupta
Hi all, Can anyone please help me in this. Thanks Amit On Tue, Dec 9, 2014 at 9:05 PM, Amit Gupta wrote: > Hi All, > > I am trying to integrate R in my C++ code . I was going through some test > examples in /RInside/inst/examples/standard/. I am able to reproduce the > results of example 7 on