tests/tinytest.R

if (requireNamespace("tinytest", quietly=TRUE) &&
    utils::packageVersion("tinytest") >= "1.0.0") {

    ## Set a seed to make the test deterministic
    set.seed(42)

    ## there are several more granular ways to test files in a tinytest directory,
    ## see its package vignette; tests can also run once the package is installed
    ## using the same command `test_package(pkgName)`, or by director or file
    tinytest::test_package("ttdo", ncpu=getOption("Ncpus", 1), side_effects=TRUE)
}

Try the ttdo package in your browser

Any scripts or data that you put into this service are public.

ttdo documentation built on March 7, 2023, 5:27 p.m.