test: Execute testthat tests in a package

View source: R/test.R

testR Documentation

Execute testthat tests in a package

Description

Execute testthat tests in a package

Usage

test(path = getwd())

longtest(path = getwd())

Arguments

path

character(1). File path (e.g. to package).

Details

Note that usage of test_local is now recommended instead of test_dir, and appears to be required for testthat checks to run successfully in parallel.

Value

Invisible TRUE on success, otherwise error.

Note

Updated 2023-09-28.

See Also

  • https://contributions.bioconductor.org/long-tests.html

  • https://github.com/r-lib/testthat/issues/1216

Examples

## > test()

acidgenomics/bb8 documentation built on Feb. 1, 2024, 11:38 a.m.