[Rcpp-devel] unloading/reloading Rcpp based custom package crashes my R session

Dirk Eddelbuettel edd at debian.org
Thu May 30 17:38:27 CEST 2013


On 30 May 2013 at 16:59, Anwar Ludin wrote:
| I am experiencing a strange behaviour when unloading/reloading a custom 
| package written using Rcpp. The initial load works perfectly and I can 
| use the package as intended.

I my experience you will be best off simply by restarting R.  When I develop
with Rcpp, I tend to do my tests on the command-line using /usr/bin/r (from our
littler project) or Rscript.  You will notice that RStudio, when rebuilding /
reloading also restarts R.   There are some people who claim that you can
cleanly unload so your mileage may differ -- I prefer clean starts.


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

More information about the Rcpp-devel mailing list