Running ‘testthat.R’ [91s/112s]
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(fdacluster)
  > 
  > test_check("fdacluster")
  
  Attaching package: 'purrr'
  
  The following object is masked from 'package:testthat':
  
      is_null
  
  Information about the data set:
   - Number of observations: 30
   - Number of dimensions: 1
   - Number of points: 30
  
  Information about cluster initialization:
   - Number of clusters: 2
   - Initial seeds for cluster centers:          1        21
  
  Information about the methods used within the algorithm:
   - Warping method: affine
   - Center method: mean
   - Dissimilarity method: pearson
   - Optimization method: bobyqa
  
  Information about warping parameter bounds:
   - Warping options:    0.1500   0.1500
  
  Information about convergence criteria:
   - Maximum number of iterations: 100
   - Distance relative tolerance: 0.001
  
  Information about parallelization setup:
   - Number of threads: 1
   - Parallel method: 0
  
  Other information:
   - Use fence to robustify: 0
   - Check total dissimilarity: 1
   - Compute overall center: 0
  
  Running k-centroid algorithm:
   - Iteration #1
     * Size of cluster #0: 20
     * Size of cluster #1: 10
   - Iteration #2
     * Size of cluster #0: 20
     * Size of cluster #1: 10
  
  Active stopping criteria:
   - Memberships did not change.
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 284 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-fdakmeans.R:165:3', 'test-fdakmeans.R:212:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-fdakmeans.R:8:3'): `fdakmeans()` works with fda::fd input object. ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'fda'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-fdakmeans.R:8:3
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 284 ]
  Error: Test failures
  Execution halted