Skip to contents

This:

  • runs any deferred tasks that may be pending

  • calls devtools::load_all if not testing

  • resets loggers

  • purges the storage

  • calls rm.all with noted exclusions

  • sets up a deferred storage purge on exit

Usage

test_sanitize(exclusions = c(), envir = parent.frame())

Arguments

exclusions

a list of object names to exclude from rm.all

envir

a local environment