<div dir="ltr">Dear Dirk<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 30, 2014 at 1:46 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>
On 30 August 2014 at 09:14, Cipollini Fabrizio wrote:<br>
| From time to time, I use R to develop my own packages.<br>
| For testing purposes, I need frequently <br>
| ***to detach the previous version and attach a more recent built without<br>
| leaving the R session***.<br>
<br>
</div>This has nothing to do with Rcpp.<br></blockquote><div><br></div><div>I figured that but since I tested only Rcpp, I searched the support of Rcpp experts before any other ... </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


The most reliable way is to ... start fresh sessions.</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


For which littler and Rscript are useful, so I something like the following<br>
all the time: to test a given package, I load it (option -l or --packages,<br>
takes a comma-sep. list) and exectute a function to test (option -e, or<br>
--eval) via littler's r:<br>
<br>
  edd@max:~$ r -l RcppZiggurat -e 'print(zrnorm(5))'<br>
  [1] -1.1409054  0.8759027 -0.1969075 -0.1245053  0.2695581<br>
  edd@max:~$<br>
<br>
Next time I run this I know I have a fresh session.  RStudio reloads the<br>
current session, and package, for you too.<br></blockquote><div><br></div><div>Ok. I take the point.</div><div><br></div><div>Thanks for your help and you terrific job with R. </div><div><br></div><div>Fabrizio Cipollini<br>
</div></div>
</div></div>