pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/R-withr



Module Name:    pkgsrc
Committed By:   mef
Date:           Sat Apr 30 14:47:28 UTC 2022

Modified Files:
        pkgsrc/devel/R-withr: Makefile distinfo

Log Message:
(devel/R-withr) Updated  2.4.3 to 2.5.0

# withr 2.5.0

* `defer()` and all `local_*()` functions now work when run inside of
  a `.Rmd`. The deferred expressions are executed when knitr exits.

* `defer()` and `local_` functions now work within `source()`.
  The deferred expressions are executed when `source()` exits.

* `with_()` and `local_()` gain a `get` argument. Supply a getter
  function to create `with` and `local` functions that are robust to
  early exits.

  When supplied, this restoration pattern is used:

  ```
  old <- get()
  on.exit(set(old))
  set(new)
  action()
  ```

  Instead of:

  ```
  old <- set(new)
  on.exit(set(old))
  action()
  ```

  This ensures proper restoration of the old state when an early exit
  occurs during `set()` (for instance when a deprecation warning is
  caught, see #191).

* These `with_` and `local_` functions are now robust to early exits (see next bullet):

  - `_locale()`
  - `_envvar()`
  - `_libpaths()`
  - `_options()`
  - `_par()`
  - `_path()`
  - `_seed()`

* `with_namespace()` and `local_namespace()` now pass `warn.conflicts`
  to `attach()` (@kyleam, #185).

* `local_rng_version()` and `local_seed()` no longer warn when
  restoring `sample.kind` to `"Rounding"` (#167).

* `with_seed()` now preserves the current values of `RNGkind()` (#167).

* `with_collate()` is no longer affected by the `LC_COLLATE`
  environment variable set to "C" (#179).

* Local evaluations in the `globalenv()` (as opposed to top-level
  ones) are now unwound in the same way as regular environments.

* `local_tempfile()` gains a lines argument so, if desired, you can pre-fill
  the temporary file with some data.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/R-withr/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/R-withr/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/R-withr/Makefile
diff -u pkgsrc/devel/R-withr/Makefile:1.7 pkgsrc/devel/R-withr/Makefile:1.8
--- pkgsrc/devel/R-withr/Makefile:1.7   Sat Apr 23 23:56:46 2022
+++ pkgsrc/devel/R-withr/Makefile       Sat Apr 30 14:47:28 2022
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.7 2022/04/23 23:56:46 gutteridge Exp $
+# $NetBSD: Makefile,v 1.8 2022/04/30 14:47:28 mef Exp $
 
 R_PKGNAME=     withr
-R_PKGVER=      2.4.3
+R_PKGVER=      2.5.0
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -9,6 +9,11 @@ COMMENT=       Run code 'with' temporarily mod
 LICENSE=       gnu-gpl-v2 OR gnu-gpl-v3
 
 TEST_DEPENDS+= R-RSQLite-[0-9]*:../../databases/R-RSQLite
+TEST_DEPENDS+= R-callr-[0-9]*:../../devel/R-callr
+TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr
+TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
+TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
+TEST_DEPENDS+= R-testthat-[0-9]*:../../devel/R-testthat
 
 USE_LANGUAGES= # none
 

Index: pkgsrc/devel/R-withr/distinfo
diff -u pkgsrc/devel/R-withr/distinfo:1.8 pkgsrc/devel/R-withr/distinfo:1.9
--- pkgsrc/devel/R-withr/distinfo:1.8   Sat Apr 23 23:56:46 2022
+++ pkgsrc/devel/R-withr/distinfo       Sat Apr 30 14:47:28 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2022/04/23 23:56:46 gutteridge Exp $
+$NetBSD: distinfo,v 1.9 2022/04/30 14:47:28 mef Exp $
 
-BLAKE2s (R/withr_2.4.3.tar.gz) = ec382a5c748d4d5f3cf3746111839c8151a4cb7f06a678e887815e104431439e
-SHA512 (R/withr_2.4.3.tar.gz) = 2f07c97c5781c4ef3dee02c33842f192af6638cb59899e2560bf8b89583a55ef6472212c78c388fb6021621b53b00b11d01bfef8ee57c7d7a6711acb1c3323ce
-Size (R/withr_2.4.3.tar.gz) = 96600 bytes
+BLAKE2s (R/withr_2.5.0.tar.gz) = 5e9b11b49b3a3e4f78c80c84e007cbfd0353b3e8d4d77da60617adf351af77c9
+SHA512 (R/withr_2.5.0.tar.gz) = 9fb29b1d2866803e1a5e2b2ca6790c1c7531e43d8805f722930512803e60481c7ed5b034ee85ec9c4f5bae40e39238e8fcb435f7b290f71dfda0fc9f219e65ec
+Size (R/withr_2.5.0.tar.gz) = 102089 bytes



Home | Main Index | Thread Index | Old Index