diff options
author | mef <mef@pkgsrc.org> | 2021-06-01 13:31:23 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2021-06-01 13:31:23 +0000 |
commit | 23a4136a83a481478865b8fa8ea29c3463eb56f6 (patch) | |
tree | 9832ac9a2ca9bace1b81e998f303d5f57f913e74 /devel/R-pkgload | |
parent | 85921902c3e16987854581213f0fdbbdb4df4f56 (diff) | |
download | pkgsrc-23a4136a83a481478865b8fa8ea29c3463eb56f6.tar.gz |
(devel/R-pkgload) Updated 1.1.0 to 1.2.1
# pkgload 1.2.1
* `unload()` no longer unregisters methods for generics of the package being unloaded. This way dangling references to generics defined in the stale namespace still work as expected (r-lib/vctrs#1341).
* `load_all()` will now work for packages that have testthat tests but do not have testthat installed (#151)
* The `pkgbuild` dependency has been moved to `Suggests`, as it is only needed for packages with compiled code.
* `load_all()` will now work for packages that have testthat tests but do not have testthat installed (#151)
* `load_all(warn_conflicts = TRUE)` becomes more narrow and only warns when a *function* in the global environment masks a *function* in the package, consistent with the docs (#125, #143 @jennybc).
* `load_all()` no longer does a comprehensive check on the `DESCRIPTION` file when loading, instead just checking that it exists and starts with Package (#149, @malcolmbarrett)
* `unload()` no longer warns when it can't unload a namespace.
# pkgload 1.2.0
* Fix test failure in R 4.1 with regards to S4 method registration
* `load_all()` now preserves existing namespaces in working order. In
particular, it doesn't unload the package's shared library and keeps
it loaded instead. When reloading, a copy of the SO for the new
namespace is loaded from a temporary location. These temporary SOs
are only unloaded on GC and deleted from their temporary location
via a weak reference attached to the namespace.
This mechanism ensures that lingering references to the namespace
keep working as expected. Consequently the namespace
propagation routine that was added to pkgload as a workaround has
been removed.
Note that `.Call()` invocations that pass a string symbol rather
than a structured symbol may keep crashing, because R will look into
the most recently loaded SO of a given name. Since symbol
registration is now the norm, we don't expect this to cause much
trouble.
* `load_all()` no longer forces all bindings of a namespace to avoid
lazy-load errors. Instead, it removes exported S3 methods from the
relevant tables.
- This improves the loading behaviour with packages that define
objects in their namespaces lazily (e.g. with `delayedAssign()`).
- This also makes `load_all()` more predictable after a method has
been removed from the package. It is now actually removed from the
generic table. It would previously linger until R was restarted.
* If `load_all()` attaches testthat, it automatically suppresses conflicts.
Diffstat (limited to 'devel/R-pkgload')
-rw-r--r-- | devel/R-pkgload/Makefile | 4 | ||||
-rw-r--r-- | devel/R-pkgload/distinfo | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/devel/R-pkgload/Makefile b/devel/R-pkgload/Makefile index 537c08a5a17..1f37be7e087 100644 --- a/devel/R-pkgload/Makefile +++ b/devel/R-pkgload/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.2 2020/09/20 04:13:53 mef Exp $ +# $NetBSD: Makefile,v 1.3 2021/06/01 13:31:23 mef Exp $ R_PKGNAME= pkgload -R_PKGVER= 1.1.0 +R_PKGVER= 1.2.1 CATEGORIES= devel MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/devel/R-pkgload/distinfo b/devel/R-pkgload/distinfo index 85de47e0d46..8d19fd8e148 100644 --- a/devel/R-pkgload/distinfo +++ b/devel/R-pkgload/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.2 2020/09/20 04:13:53 mef Exp $ +$NetBSD: distinfo,v 1.3 2021/06/01 13:31:23 mef Exp $ -SHA1 (R/pkgload_1.1.0.tar.gz) = 453a2e8c8b40cb16fda642eac9fc0ce3330510fd -RMD160 (R/pkgload_1.1.0.tar.gz) = 937999463ab39f88111dfc9308cf5417ea080327 -SHA512 (R/pkgload_1.1.0.tar.gz) = 0e1fd0954ed303a168d35d99e2cbe2a07f53afa6c16f463aacacecc1364944a3532c505deff0667caa4773204de60c0d9a286d060c7c07b56eb8ae2dff5dc8ee -Size (R/pkgload_1.1.0.tar.gz) = 58046 bytes +SHA1 (R/pkgload_1.2.1.tar.gz) = d5a365e3ad0da30e37f2216112544e6c3f83cbaa +RMD160 (R/pkgload_1.2.1.tar.gz) = b4a54b19c16c9b9378cc1acc4c6d10594b330ed1 +SHA512 (R/pkgload_1.2.1.tar.gz) = c80c532a23db99ffd0624673d6a7debcd12850df78cc669c6a91ddcc3be6085999d200b8d005e8a839ae0d33862af56589e887dff194a375566ae672836ffe57 +Size (R/pkgload_1.2.1.tar.gz) = 60651 bytes |