tests/testthat/utils.R

expect_rng_unchanged <- function(f) {
  oldseed <- .GlobalEnv$.Random.seed
  f()
  expect_identical(oldseed, .GlobalEnv$.Random.seed)
}

expect_different <- function(x, y) {
  eval(bquote(expect_false( identical(.(x), .(y)) )))
}

Try the DEFormats package in your browser

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

DEFormats documentation built on Nov. 8, 2020, 5:31 p.m.