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
test_that("multiplication works", { expect_equal(2 * 2, 4) })
Basic form:
test_that("test description", { expect_xyz() expect_xyz() expect_xyz() })
Recommended 2-6 expect functions inside a test