usethis
load_all()
test()
base::on.exit()
withr::defer()
withr
tools/
DESCRIPTION
Imports
Suggests
usethis::use_package()
Depends
Linking to
NAMESPACE
R/
Config/Needs/*
testthat
test_that
on.exit()
skip()
README.md
.Rmd
.md
usethis::use_readme_rmd()
NEWS.md
usethis::use_news_md()
NEWS
Focus on testing the external interface to your functions, to make easier to update the functions.
Strive to test each behaviour in one test.
Avoid testing simple code that you’re confident will work.
Always write a test when you discover a bug.