Skip to content

Commit

Permalink
add testthat helper state
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Oct 12, 2023
1 parent b2d3b1b commit d10128f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/helper-state.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
testthat::set_state_inspector(function() {
list(
attached = search(),
connections = nrow(showConnections()),
cwd = getwd(),
envvars = Sys.getenv(),
libpaths = .libPaths(),
locale = Sys.getlocale(),
options = .Options,
packages = .packages(all.available = TRUE),
NULL
)
})

0 comments on commit d10128f

Please sign in to comment.