[Rcpp-devel] Error in RCpp and Wt toolkit

Dirk Eddelbuettel edd at debian.org
Sat Mar 30 00:41:38 CET 2013


On 29 March 2013 at 19:24, John Robson wrote:
| The example:
| http://dirk.eddelbuettel.com/blog/2011/11/30/#rinside_and_wt
| 
| >From the code:
| https://github.com/JohnRobson/Wt-Tests/blob/master/RInside/wtdensity.cpp
| 
| After running, the site appears OK: http://imagebin.org/252132
| 
| But immediately a segmentation error is throw:
| http://paste.ubuntu.com/5659723/
| 
| Line 171 Cause this error.
| 
| 171  R_.parseEvalQ(cmd); // evaluate command -- generates new density plot
| 
| What I need to do to fix this error?

For starters, please learn to write meaningful bug reports. Yours is concise
(a plus) but I don't have time to chase around different websites.

On my _stock Ubuntu 12.10_ I just rebuilt RInside (both 0.2.10 and the SVN
version 0.2.10.1 I have here), and run make inside examples/wt -- and it
works just fine in both cases. Try

   http://dirk.eddelbuettel.com:8088 

to play with it.  

You need to tell us (at a minimum) what OS and release, what Rcpp version,
what RInside version, possibly what Wt version etc pp.  I reckon that the
code is fine, but that something is amiss from your build.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list