tests/testthat.R

library(testthat)
library(ps)

if (ps::ps_is_supported() && Sys.getenv("R_COVR", "") != "true" &&
    Sys.getenv("NOT_CRAN") != "" ) {
  reporter <- ps::CleanupReporter(testthat::SummaryReporter)$new()
} else {
  reporter <- "summary"
}

if (ps_is_supported() && Sys.getenv("NOT_CRAN") != "") {
  test_check("ps", reporter = reporter)
}

Try the ps package in your browser

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

ps documentation built on Sept. 13, 2024, 1:12 a.m.