Path to this page:
Subject: CVS commit: pkgsrc/devel/R-withr
From: Makoto Fujiwara
Date: 2020-10-03 15:53:44
Message id: 20201003135344.B63A4FB28@cvs.NetBSD.org
Log Message:
(devel/R-withr) Updated 2.2.0 to 2.3.0
# withr 2.3.0
## Deprecations
- `local_tempfile()` argument `new` is deprecated, in favor of returning the path
to the new tempfile.
calls like `local_tempfile("xyz")` should be replaced with `xyx \
<- local_tempfile()`
in your code (#141).
## New features
- New `local_seed()` function and `local_preserve_seed()` functions to correspond
to `with_seed()` and `with_preserve_seed()` (#139).
- New `local_tempdir()` function added to create a temp directory (#140)
- `local_*()` functions now take dots (`...`), which can simplify calls in some
cases, e.g. you can now use `local_options(foo = "bar")` rather than
`local_options(c(foo = "bar"))`.
## Minor improvements and fixes
- `defer()` now throws an error if an error occurs in the deferred expression
(#148)
- `with_file()` and `local_file()` can now work if the file is actually a
directory (#144).
Files: