tests/testthat.R

library(testthat)
library(np)

np_check_filter <- Sys.getenv("NP_CHECK_FILTER", unset = "check-core-smoke")
np_check_full <- identical(Sys.getenv("NP_CHECK_FULL", unset = ""), "1")

if (isTRUE(np_check_full) || identical(np_check_filter, "")) {
  test_check("np")
} else {
  test_check("np", filter = np_check_filter)
}

Try the np package in your browser

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

np documentation built on May 3, 2026, 1:07 a.m.