Hi, Rainer, Personally I think the video below provides a very nice example to debug in R package.
https://vimeo.com/11937905 Hope it helps. Best, KK On Wed, Jan 13, 2016 at 5:21 AM, Rich FitzJohn <rich.fitzj...@gmail.com> wrote: > On a mac, lldb passed to R as `R -d lldb` usually does the trick. Kevin > Ushey has written a nice article on this here: > http://kevinushey.github.io/blog/2015/04/13/debugging-with-lldb/ > which complements the information in R-exts > > https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Debugging-compiled-code > > Cheers, > Rich > > On Wed, Jan 13, 2016 at 10:17 AM Rainer M Krug <rai...@krugs.de> wrote: > >> Hi >> >> What is te easiest way of debugging a package using Rcpp which gives a >> segfault in the C++ code? >> >> What is the up-to-date procedure? >> >> I am on OS X and use usually emacs and ess. >> >> Any suggestions? >> >> Thanks, >> >> Raner >> >> -- >> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation >> Biology, UCT), Dipl. Phys. (Germany) >> >> Centre of Excellence for Invasion Biology >> Stellenbosch University >> South Africa >> >> Tel : +33 - (0)9 53 10 27 44 >> Cell: +33 - (0)6 85 62 59 98 >> Fax : +33 - (0)9 58 10 27 44 >> >> Fax (D): +49 - (0)3 21 21 25 22 44 >> >> email: rai...@krugs.de >> >> Skype: RMkrug >> >> PGP: 0x0F52F982 >> _______________________________________________ >> 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 > > > _______________________________________________ > 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 > -- Qiang Kou q...@umail.iu.edu School of Informatics and Computing, Indiana University
_______________________________________________ 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