tests/testthat/setup.R

# This file is automatically run before and after every test to check if a test did not accidently
# change anything permanently, e.g. options or left open connections.
# See https://www.tidyverse.org/blog/2023/10/testthat-3-2-0/#state-inspector
set_state_inspector(function() {
  list(
    options = options(),
    envvars = Sys.getenv(),
    connections = getAllConnections(),
    workdir = getwd(),
    tempfiles = list.files(tempdir())
  )
})

Try the esmtools package in your browser

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

esmtools documentation built on May 29, 2024, 6:45 a.m.