Skip to content

withr 3.0.3

Latest

Choose a tag to compare

@lionel- lionel- released this 22 Jun 08:58
· 1 commit to main since this release
  • Fixes for CRAN checks.

  • Fixed issue that prevented local_seed() from preserving the seed (#286, @BjarkeHautop).

    Note: If you had before:

    test_that("A", {
      withr::local_seed(1)   # Seeds locally
      runif(...)
    })
    
    test_that("B", {
      runif(...)             # NO seed of its own
    })

    Before the fix, the test "B" was accidentally seeded by "A". Now it needs to be seeded on its own.