Have you tried Hadley's devtools package? It probably has the best tools for auto-reloading packages. On occasion it will jam on me and I have to restart R, but most times load_all("Hello", recompile=T) should do what you want.
---Christian Quote: Dear everybody I apologize whether this question has been already answered but I read the documentation and I surfed the web without solving my issue. >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***. I'm able to do this with the command detach(name = "Hello", unload = TRUE, force = TRUE) if I include in the source package a zzz.R file with the function .onUnload <- function(libpath = NULL) { library.dynam.unload("Hello", libpath) } ("Hello" is the name of the package I used for testing) However, if "Hello" links and imports "Rcpp" (and an import(Rcpp) directive is included in NAMESPACE) all this stuff does not work, in the sense that even detaching and building a new version of "Hello", the previous one is attached. On the other side, if I quit R and I open another session, the last version of "Hello" is attached successfully.
_______________________________________________ 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