library(testthat) library(errors) test_check("errors") detach("package:errors", unload = TRUE)