Running ‘testthat.R’ [14s/20s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(squat)
  
  Attaching package: 'squat'
  
  The following objects are masked from 'package:stats':
  
      dist, hclust, kmeans, smooth
  
  The following objects are masked from 'package:base':
  
      append, scale
  
  > 
  > test_check("squat")
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  i The maximum number of principal component is 15.
  i The maximum number of principal component is 15.
  The `original_space` boolean argument is not specified. Defaulting to TRUE.
  The `plane` length-2 integer vector argument is not specified. Defaulting to 1:2.
  i The maximum number of principal component is 15.
  The `original_space` boolean argument is not specified. Defaulting to TRUE.
  [ FAIL 6 | WARN 0 | SKIP 28 | PASS 27 ]
  
  ══ Skipped tests (28) ══════════════════════════════════════════════════════════
  • On CRAN (28): 'test-DTW.R:2:3', 'test-interface.R:2:3',
    'test-interface.R:7:3', 'test-interface.R:12:3', 'test-interface.R:24:3',
    'test-interface.R:31:3', 'test-interface.R:36:3', 'test-interface.R:41:3',
    'test-interface.R:46:3', 'test-qts-class.R:15:3', 'test-qts-class.R:23:3',
    'test-qts-class.R:31:3', 'test-qts-class.R:49:3', 'test-qts-dist.R:5:3',
    'test-qts-dist.R:15:3', 'test-qts-prcomp.R:3:3', 'test-qts-prcomp.R:21:3',
    'test-qts-sample-class.R:7:3', 'test-qts-sample-class.R:18:5',
    'test-qts-sample-class.R:30:3', 'test-qts-sample-class.R:67:3',
    'test-qts-sample-class.R:71:3', 'test-qts-sample-class.R:75:3',
    'test-qts-sample-class.R:91:3', 'test-qts-transformations.R:2:3',
    'test-qts-transformations.R:6:3', 'test-qts-transformations.R:11:3',
    'test-qts-transformations.R:16:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-qts-dbscan.R:8:3'): Function dbscan.qts_sample() works ─────────
  Error in `check_option_compatibility(is_domain_interval = is_domain_interval, 
      transformation = transformation, warping_class = warping_class, 
      metric = metric)`: The L2 metric is neither dilation-invariant nor affine-invariant.
  Backtrace:
      ▆
   1. ├─squat::dbscan(vespa64$igp[1:10]) at test-qts-dbscan.R:8:3
   2. └─squat:::dbscan.qts_sample(vespa64$igp[1:10])
   3.   └─fdacluster::fdadbscan(...)
   4.     └─fdacluster:::check_option_compatibility(...)
   5.       └─cli::cli_abort("The L2 metric is neither dilation-invariant nor affine-invariant.")
   6.         └─rlang::abort(...)
  ── Error ('test-qts-dist.R:9:3'): Function dist.qts_sample() works via fdacluster pkg ──
  Error in `fdacluster::fdadist(x = l$grid, y = l$values, warping_class = warping_class, 
      metric = metric, cluster_on_phase = cluster_on_phase, labels = labels)`: `warping_class` must be one of "none", "shift", "dilation", "affine", or "bpd", not "affine".
  Backtrace:
      ▆
   1. ├─squat::dist(vespa64$igp[1:5]) at test-qts-dist.R:9:3
   2. └─squat:::dist.qts_sample(vespa64$igp[1:5])
   3.   └─fdacluster::fdadist(warping_class = warping_class)
   4.     └─rlang::arg_match(warping_class)
   5.       └─rlang::abort(msg, call = error_call, arg = error_arg)
  ── Error ('test-qts-hclust.R:7:3'): Function hclust.qts_sample() works ─────────
  Error in `check_option_compatibility(is_domain_interval = is_domain_interval, 
      transformation = transformation, warping_class = warping_class, 
      metric = metric)`: The L2 metric is neither dilation-invariant nor affine-invariant.
  Backtrace:
      ▆
   1. ├─squat::hclust(vespa64$igp[1:10], n_clusters = 2) at test-qts-hclust.R:7:3
   2. └─squat:::hclust.qts_sample(vespa64$igp[1:10], n_clusters = 2)
   3.   └─fdacluster::fdahclust(...)
   4.     └─fdacluster:::check_option_compatibility(...)
   5.       └─cli::cli_abort("The L2 metric is neither dilation-invariant nor affine-invariant.")
   6.         └─rlang::abort(...)
  ── Error ('test-qts-kmeans.R:8:5'): Function kmeans.qts_sample() works ─────────
  Error in `check_option_compatibility(is_domain_interval = is_domain_interval, 
      transformation = transformation, warping_class = warping_class, 
      metric = metric)`: The L2 metric is neither dilation-invariant nor affine-invariant.
  Backtrace:
      ▆
   1. ├─withr::with_seed(...) at test-qts-kmeans.R:7:3
   2. │ └─withr::with_preserve_seed(...)
   3. ├─squat::kmeans(vespa64$igp[1:10], n_clusters = 2) at test-qts-kmeans.R:8:5
   4. └─squat:::kmeans.qts_sample(vespa64$igp[1:10], n_clusters = 2)
   5.   └─fdacluster::fdakmeans(...)
   6.     └─fdacluster:::check_option_compatibility(...)
   7.       └─cli::cli_abort("The L2 metric is neither dilation-invariant nor affine-invariant.")
   8.         └─rlang::abort(...)
  ── Error ('test-qts-kmeans.R:15:5'): Visualization code for k-means work ───────
  Error in `check_option_compatibility(is_domain_interval = is_domain_interval, 
      transformation = transformation, warping_class = warping_class, 
      metric = metric)`: The L2 metric is neither dilation-invariant nor affine-invariant.
  Backtrace:
      ▆
   1. ├─withr::with_seed(...) at test-qts-kmeans.R:14:3
   2. │ └─withr::with_preserve_seed(...)
   3. ├─squat::kmeans(vespa64$igp[1:10], n_clusters = 2) at test-qts-kmeans.R:15:5
   4. └─squat:::kmeans.qts_sample(vespa64$igp[1:10], n_clusters = 2)
   5.   └─fdacluster::fdakmeans(...)
   6.     └─fdacluster:::check_option_compatibility(...)
   7.       └─cli::cli_abort("The L2 metric is neither dilation-invariant nor affine-invariant.")
   8.         └─rlang::abort(...)
  ── Error ('test-qts-kmeans.R:26:5'): Visualization functions for PCA work ──────
  Error in `check_option_compatibility(is_domain_interval = is_domain_interval, 
      transformation = transformation, warping_class = warping_class, 
      metric = metric)`: The L2 metric is neither dilation-invariant nor affine-invariant.
  Backtrace:
      ▆
   1. ├─withr::with_seed(...) at test-qts-kmeans.R:25:3
   2. │ └─withr::with_preserve_seed(...)
   3. ├─squat::kmeans(vespa64$igp[1:10], n_clusters = 2) at test-qts-kmeans.R:26:5
   4. └─squat:::kmeans.qts_sample(vespa64$igp[1:10], n_clusters = 2)
   5.   └─fdacluster::fdakmeans(...)
   6.     └─fdacluster:::check_option_compatibility(...)
   7.       └─cli::cli_abort("The L2 metric is neither dilation-invariant nor affine-invariant.")
   8.         └─rlang::abort(...)
  
  [ FAIL 6 | WARN 0 | SKIP 28 | PASS 27 ]
  Deleting unused snapshots:
  • qts-class/qts-plot-with-change-points.svg
  • qts-kmeans/k-means-plot.svg
  • qts-prcomp/colored-score-plot.svg
  • qts-prcomp/score-plot.svg
  • qts-prcomp/screeplot.svg
  • qts-sample-class/qts-sample-plot-with-highlighted-observations.svg
  • qts-sample-class/qts-sample-plot-with-memberships.svg
  Error: Test failures
  Execution halted