Skip to contents

This function initializes units tests settings by running usethis::use_testthat() and by adding an example units tests file tests/testthat/test-demo.R. The sample file will test a demo function created in R/fun-demo.R.

Usage

add_testthat()

Value

No return value.

Examples

if (FALSE) { # \dontrun{
add_testthat()
} # }