tests/testthat/helper-functions.R

# Function to tidy up at the end of tests
tidy_up <- function() {
  objs <- setdiff(ls(envir = .TargetEnv), "tidy_up")
  rm(list = objs, envir = .TargetEnv)
}
johnmyleswhite/ProjectTemplate documentation built on April 29, 2024, 7:17 a.m.