tests/package_test_runner.R

# package to check
pkg <- "metaOpt"

# This file is distributed without license requirements, feel free to alter/copy.
if (requireNamespace("RUnit", quietly = TRUE) &&
  requireNamespace(pkg, quietly = TRUE)) {
  # library("RUnit") # uncomment this if you want RUnit attached during testing
  library(pkg, character.only = TRUE)
  metaOpt::run_package_tests(pkg, verbose = TRUE, require_RUnit_attached = FALSE)
}
lucasmpavelski/metaOpt documentation built on Aug. 23, 2021, 12:03 p.m.