• using R Under development (unstable) (2025-01-24 r87627)
  • using platform: aarch64-apple-darwin20
  • R was compiled by     Apple clang version 14.0.0 (clang-1400.0.29.202)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Ventura 13.4
  • using session charset: UTF-8
  • checking for file ‘squat/DESCRIPTION’ ... OK
  • this is package ‘squat’ version ‘0.3.0’
  • package encoding: UTF-8
  • checking package namespace information ... OK
  • checking package dependencies ... OK
  • checking if this is a source package ... OK
  • checking if there is a namespace ... OK
  • checking for executable files ... OK
  • checking for hidden files and directories ... OK
  • checking for portable file names ... OK
  • checking for sufficient/correct file permissions ... OK
  • checking whether package ‘squat’ can be installed ... [27s/31s] OK See the install log for details.
  • used C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’
  • used SDK: ‘MacOSX11.3.sdk’
  • checking installed package size ... INFO   installed size is 13.7Mb   sub-directories of 1Mb or more:     data 1.1Mb     help 1.1Mb     libs 11.3Mb
  • checking package directory ... OK
  • checking DESCRIPTION meta-information ... OK
  • checking top-level files ... OK
  • checking for left-over files ... OK
  • checking index information ... OK
  • checking package subdirectories ... OK
  • checking code files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... [1s/1s] OK
  • checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
  • checking whether the package can be unloaded cleanly ... [0s/1s] OK
  • checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
  • checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
  • checking loading without being on the library search path ... [1s/1s] OK
  • checking dependencies in R code ... OK
  • checking S3 generic/method consistency ... OK
  • checking replacement functions ... OK
  • checking foreign function calls ... OK
  • checking R code for possible problems ... [2s/3s] OK
  • checking Rd files ... [0s/0s] OK
  • checking Rd metadata ... OK
  • checking Rd cross-references ... OK
  • checking for missing documentation entries ... OK
  • checking for code/documentation mismatches ... OK
  • checking Rd \usage sections ... OK
  • checking Rd contents ... OK
  • checking for unstated dependencies in examples ... OK
  • checking contents of ‘data’ directory ... OK
  • checking data for non-ASCII characters ... [0s/0s] OK
  • checking LazyData ... OK
  • checking data for ASCII and uncompressed saves ... OK
  • checking line endings in C/C++/Fortran sources/headers ... OK
  • checking line endings in Makefiles ... OK
  • checking compilation flags in Makevars ... OK
  • checking for GNU extensions in Makefiles ... OK
  • checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
  • checking use of PKG_*FLAGS in Makefiles ... OK
  • checking compiled code ... OK
  • checking examples ... [5s/5s] ERROR Running examples in ‘squat-Ex.R’ failed The error most likely occurred in: > ### Name: autoplot.qtsclust > ### Title: Plot for 'qtsclust' objects > ### Aliases: autoplot.qtsclust > > ### ** Examples > > ## Don't show: > if (requireNamespace("ggplot2", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)({ # examplesIf + ## End(Don't show) + out <- kmeans(vespa64$igp[1:10], n_clusters = 2) + ggplot2::autoplot(out) + ## Don't show: + }) # examplesIf > out <- kmeans(vespa64$igp[1:10], n_clusters = 2) Error in `check_option_compatibility()`: ! The L2 metric is neither dilation-invariant nor affine-invariant. Backtrace:      ▆   1. ├─(if (getRversion() >= "3.4") withAutoprint else force)(...)   2. │ └─base::source(...)   3. │ ├─base::withVisible(eval(ei, envir))   4. │ └─base::eval(ei, envir)   5. │ └─base::eval(ei, envir)   6. ├─squat::kmeans(vespa64$igp[1:10], n_clusters = 2)   7. └─squat:::kmeans.qts_sample(vespa64$igp[1:10], n_clusters = 2)   8. └─fdacluster::fdakmeans(...)   9. └─fdacluster:::check_option_compatibility(...)  10. └─cli::cli_abort("The L2 metric is neither dilation-invariant nor affine-invariant.")  11. └─rlang::abort(...) Execution halted
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [9s/10s] ERROR   Running ‘testthat.R’ [9s/10s] 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
  • checking PDF version of manual ... [4s/5s] OK
  • DONE Status: 2 ERRORs
  • using check arguments '--no-clean-on-error '