[Rcpp-commits] r3934 - pkg/Rcpp/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Nov 10 21:45:13 CET 2012


Author: jjallaire
Date: 2012-11-10 21:45:13 +0100 (Sat, 10 Nov 2012)
New Revision: 3934

Modified:
   pkg/Rcpp/R/Attributes.R
Log:
tolerate dynamic library not being previously loaded

Modified: pkg/Rcpp/R/Attributes.R
===================================================================
--- pkg/Rcpp/R/Attributes.R	2012-11-10 20:31:05 UTC (rev 3933)
+++ pkg/Rcpp/R/Attributes.R	2012-11-10 20:45:13 UTC (rev 3934)
@@ -81,7 +81,7 @@
         
         # unload and delete existing dylib if necessary
         if (file.exists(context$dynlibPath)) {
-            dyn.unload(context$dynlibPath)
+            try(silent=T, dyn.unload(context$dynlibPath))
             file.remove(context$dynlibPath)
         }
            



More information about the Rcpp-commits mailing list