[Dplr-commits] r1044 - in pkg/dplR: . R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Jan 18 16:07:52 CET 2017


Author: mvkorpel
Date: 2017-01-18 16:07:52 +0100 (Wed, 18 Jan 2017)
New Revision: 1044

Added:
   pkg/dplR/R/zzz.R
Modified:
   pkg/dplR/ChangeLog
Log:
.onUnload(): DLL / shared library is unloaded together with package

Background:

* Hitting the limit for number of DLLs loaded in R.
<https://stat.ethz.ch/pipermail/r-devel/2016-December/073523.html>

* Why the file containing .onUnload() is named zzz.R: by convention.
<http://r-pkgs.had.co.nz/r.html>


Modified: pkg/dplR/ChangeLog
===================================================================
--- pkg/dplR/ChangeLog	2016-12-19 09:53:03 UTC (rev 1043)
+++ pkg/dplR/ChangeLog	2017-01-18 15:07:52 UTC (rev 1044)
@@ -43,7 +43,11 @@
 
 - Note on commit from Zang: sea() simplified and computation of p-values fixed; computation of p-values and CI bands for sea() now based on ecdf() and quantile() functions.
 
+File: zzz.R
+-----------------
 
+- .onUnload(): DLL / shared library is unloaded together with package
+
 * CHANGES IN dplR VERSION 1.6.4
 
 File: DESCRIPTION

Added: pkg/dplR/R/zzz.R
===================================================================
--- pkg/dplR/R/zzz.R	                        (rev 0)
+++ pkg/dplR/R/zzz.R	2017-01-18 15:07:52 UTC (rev 1044)
@@ -0,0 +1,3 @@
+.onUnload <- function (libpath) {
+    library.dynam.unload("dplR", libpath)
+}


Property changes on: pkg/dplR/R/zzz.R
___________________________________________________________________
Added: svn:eol-style
   + native



More information about the Dplr-commits mailing list