RInside gives a segmentation error

I installed the Rcpp and RInside packages using install.packages. Then I downloaded the examples and compiled using make. The initial error occurred due to some error in sample9. As soon as I removed sample9.cpp, it all compiled. Now the problem is that I cannot run any of the examples. I seem to get a segmentation error when I try to instantiate an RInside object. I downloaded RInside 2.10 from the RInside page and am using R 3.0.2. This is a compatibility issue. I am trying to do this on an ubuntu setup.

(gdb) where
#0  0x00007ffff799bbd2 in Rf_isNull () from /usr/lib/libR.so
#1  0x00007ffff768a103 in Rcpp_ReplaceObject (y=0x0, x=0x0) at /usr/local/lib/R/site-   library/Rcpp/include/RcppCommon.h:107
#2  set__ (x=0x0, this=0x7fffffffe4f8) at /usr/local/lib/R/site-   library/Rcpp/include/Rcpp/storage/PreserveStorage.h:18
#3  Environment_Impl (this=0x7fffffffe4f8) at /usr/local/lib/R/site-library/Rcpp/include/Rcpp/Environment.h:46
#4  RInside::RInside (this=0x7fffffffe4f0, argc=1, argv=0x7fffffffe638, loadRcpp=false, verbose=false, interactive=false) at RInside.cpp:91
#5  0x0000000000402adf in ?? ()
#6  0x00007ffff6dc676d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000402d55 in ?? ()
#8  0x00007fffffffe628 in ?? ()
#9  0x000000000000001c in ?? ()
#10 0x0000000000000001 in ?? ()
#11 0x00007fffffffe848 in ?? ()
#12 0x0000000000000000 in ?? ()

This is a gdb trace. I could not understand this, but I hope others can.

http://comments.gmane.org/gmane.comp.lang.r.rcpp/6740 . , . , ?

+3

All Articles