The tests directory contains four types of tests.
tests/testthatThese are the standard package tests run by:
devtools::test()R CMD checkThese tests are intended to provide routine package QA.
tests/simulationThese are longer-running simulation-based tests used for statistical validation.
These tests are not run automatically by R CMD check or ordinary CI.
Run manually with:
testthat::test_dir("tests/simulation")
tests/plotThese are plots of model outputs. The aim is to detect any sort of anomolous behaviour.
The plots should be created and manually insepected by a human from time to time.
tests/valgrindThese are small targeted tests intended for memory debugging under Valgrind.
The tests in this directory should:
Typical uses include:
MakeADFun()sdreport()These tests are not run by ordinary R CMD check.
On macOS, run these tests remotely using the manual GitHub Actions workflow:
The workflow runs the tests in tests/valgrind on Ubuntu, where Valgrind is available through the system package manager.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.