[Rcpp-devel] How to detach a package completely
Cipollini Fabrizio
cipollini.fabrizio at gmail.com
Sat Aug 30 16:47:52 CEST 2014
Dear Dirk
On Sat, Aug 30, 2014 at 1:46 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> On 30 August 2014 at 09:14, Cipollini Fabrizio wrote:
> | From time to time, I use R to develop my own packages.
> | For testing purposes, I need frequently
> | ***to detach the previous version and attach a more recent built without
> | leaving the R session***.
>
> This has nothing to do with Rcpp.
>
I figured that but since I tested only Rcpp, I searched the support of Rcpp
experts before any other ...
> The most reliable way is to ... start fresh sessions.
For which littler and Rscript are useful, so I something like the following
> all the time: to test a given package, I load it (option -l or --packages,
> takes a comma-sep. list) and exectute a function to test (option -e, or
> --eval) via littler's r:
>
> edd at max:~$ r -l RcppZiggurat -e 'print(zrnorm(5))'
> [1] -1.1409054 0.8759027 -0.1969075 -0.1245053 0.2695581
> edd at max:~$
>
> Next time I run this I know I have a fresh session. RStudio reloads the
> current session, and package, for you too.
>
Ok. I take the point.
Thanks for your help and you terrific job with R.
Fabrizio Cipollini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140830/5aa75f6b/attachment.html>
More information about the Rcpp-devel
mailing list