powered by
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.
usethis::use_testthat()
tests/testthat/test-demo.R
R/fun-demo.R
add_testthat()
No return value.
Other create files: add_citation(), add_code_of_conduct(), add_compendium(), add_contributing(), add_description(), add_dockerfile(), add_license(), add_makefile(), add_package_doc(), add_readme_rmd(), add_renv(), add_vignette()
add_citation()
add_code_of_conduct()
add_compendium()
add_contributing()
add_description()
add_dockerfile()
add_license()
add_makefile()
add_package_doc()
add_readme_rmd()
add_renv()
add_vignette()
if (FALSE) { add_testthat() }
Run the code above in your browser using DataLab