Running ‘testthat.R’ [171s/123s]
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.20-1. 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() # broken, can't figure out why
  > #'
  > #' To disable parallel tests, before calling test() run:
  > #'
  > #'   options(dtwclust_skip_par_tests = TRUE)
  > #'
  > testthat::test_check("dtwclust")
  ── 1. Error: Methods for TSClusters objects are dispatched correctly.  ─────────
  invalid dendrogram
  1: expect_silent(plot(hierarchical_object, type = "dendrogram"))
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(quo), get_env(quo))
  9: plot(hierarchical_object, type = "dendrogram")
  10: plot(hierarchical_object, type = "dendrogram")
  11: .local(x, y, ...)
  12: graphics::plot(x, ...)
  13: plot.hclust(x, ...)
  14: stop(msg)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1886 SKIPPED: 3 FAILED: 1
  1. Error: Methods for TSClusters objects are dispatched correctly. 
  
  Error: testthat unit tests failed
  Execution halted