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

Anwar Ludin anwar.ludin at riskcetera.com
Thu May 30 17:55:01 CEST 2013

Hi Dirk,

Yes I noticed that RStudio was restarting the session whenever you 
rebuild the package. I guess RStudio does this in order to make sure 
that the session is clean. I am however a bit worried from an RStudio 
end-user's perspective because the package can be loaded/unloaded using 
the package selection functionality in RStudio,  and whenever the user 
does that the R session crashes.



On 05/30/2013 05:38 PM, Dirk Eddelbuettel wrote:
> Anwar,
> 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

More information about the Rcpp-devel mailing list