tests/tinytest.R

if (requireNamespace("tinytest", quietly=TRUE)) {

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

    ## R makes us to this (and tinytest now sets it too ...)
    Sys.setenv("R_TESTS"="")

    ## 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("RcppFastFloat")
}

Try the RcppFastFloat package in your browser

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

RcppFastFloat documentation built on April 3, 2025, 9:39 p.m.