tests/testthat.R

library(dtwclust)
library(foreach)
library(testthat)

# coverage for multi-threading might not be possible (?)
if (nzchar(Sys.getenv("R_COVR"))) RcppParallel::setThreadOptions(1L)
# old reporter for CMD checks
options(testthat.default_reporter = "summary")

#' To test in a local machine:
#' Sys.setenv(NOT_CRAN = "true"); test_dir("tests/testthat/")
#' OR
#' devtools::test() # fixed? https://github.com/r-lib/devtools/issues/1832
#'
#' To disable parallel tests, before calling test() run:
#'
#'   options(dtwclust_skip_par_tests = TRUE)
#'
testthat::test_check("dtwclust")

Try the dtwclust package in your browser

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

dtwclust documentation built on Sept. 11, 2024, 9:07 p.m.