This vignette follows the instructions of Hadley Wichkam's R packaging book.

setting up testing for your package

# install testthat if required
usethis::use_testthat()

Run from console :

usethis::use_test("testname")

produces an R file with an example in the folder test/testthat/.

Run all tests (run from console)

devtools::test()


allanecology/multiFunBetadivLuiGDM documentation built on Nov. 12, 2023, 6:16 a.m.