withr 2.5.0

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).

withr 2.4.3

withr 2.4.2

withr 2.4.1

withr 2.4.0

withr 2.3.0


New features

Minor improvements and fixes

withr 2.2.0

withr 2.1.2

withr 2.1.1

withr 2.1.0

withr 2.0.0

withr 1.0.2

withr 1.0.1

withr 1.0.0

Try the withr package in your browser

Any scripts or data that you put into this service are public.

withr documentation built on March 18, 2022, 7:47 p.m.