add_testthat: Initialize units tests

Description Usage Value See Also Examples

View source: R/add_testthat.R

Description

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

1

Value

None

See Also

Other create files: add_citation(), add_compendium(), add_description(), add_license(), add_makefile(), add_package_doc(), add_readme_rmd(), add_vignette()

Examples

1
2
3
4
## Not run: 
add_testthat()

## End(Not run)

rcompendium documentation built on March 24, 2021, 5:06 p.m.