Running 'testthat.R' [152s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(dtwclust)
  Loading required package: proxy
  
  Attaching package: 'proxy'
  
  The following objects are masked from 'package:stats':
  
      as.dist, dist
  
  The following object is masked from 'package:base':
  
      as.matrix
  
  Loading required package: dtw
  Loaded dtw v1.23-3. See ?dtw for help, citation("dtw") for use in publication.
  
  dtwclust:
  Setting random number generator to L'Ecuyer-CMRG (see RNGkind()).
  To read the included vignettes type: browseVignettes("dtwclust").
  See news(package = "dtwclust") after package updates.
  > 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")
  Saving _problems/test-02-integration-02-families-466.R
  Saving _problems/test-02-integration-02-families-506.R
  Saving _problems/test-02-integration-02-families-509.R
  [ FAIL 3 | WARN 0 | SKIP 15 | PASS 1936 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • On CRAN (14): 'test-05-regression-01-proxy.R:19:5',
    'test-05-regression-01-proxy.R:36:5', 'test-05-regression-02-dtwb.R:13:5',
    'test-05-regression-03-family-distmat.R:14:9',
    'test-05-regression-04-family-centroids.R:14:9',
    'test-05-regression-04-family-centroids.R:34:9',
    'test-05-regression-05-custom-dist.R:14:9',
    'test-05-regression-06-cvis.R:14:9',
    'test-05-regression-07-clusterings.R:14:9',
    'test-05-regression-07-clusterings.R:35:9',
    'test-05-regression-07-clusterings.R:53:9',
    'test-05-regression-07-clusterings.R:82:9',
    'test-05-regression-08-comparisons.R:14:9', 'test-06-parallel.R:16:5'
  • sequential case (1): 'test-01-unit-02-misc.R:110:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-02-integration-02-families.R:465:5'): Operations with tsclustFamily@dist and gak give expected results ──
  Expected `sub_distmat` to equal `distmat[, c(1L, 15L), drop = FALSE]`.
  Differences:
  actual != expected but don't know how to show the difference
  
  Sub, NULL distmat
  ── Failure ('test-02-integration-02-families.R:505:5'): Operations with tsclustFamily@dist and gak give expected results ──
  Expected `whole_distmat` to equal `base::as.matrix(distmat)`.
  Differences:
  actual != expected but don't know how to show the difference
  
  Whole, sparse distmat
  ── Failure ('test-02-integration-02-families.R:508:5'): Operations with tsclustFamily@dist and gak give expected results ──
  Expected `sub_distmat` to equal `base::as.matrix(distmat[, c(1L, 15L), drop = FALSE])`.
  Differences:
  actual != expected but don't know how to show the difference
  
  Sub, sparse distmat
  
  [ FAIL 3 | WARN 0 | SKIP 15 | PASS 1936 ]
  Error:
  ! Test failures.
  Execution halted