Running ‘testthat.R’ [13s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(celltrackR)
  > 
  > test_check("celltrackR")
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 313 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test1D.R:24:2): all track measures work ──────────────────────────────
  Error in `fractalDimension(d[[1]])`: This function requires the 'fractaldim' package; please install manually before continuing: install.packages('fractaldim')
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(fractalDimension(d[[1]]), 1.41503749927884) at test1D.R:24:8
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─celltrackR::fractalDimension(d[[1]])
  ── Error (testClusterFunctions.R:13:3): getFeatureMatrix returns correct output format ──
  Error in `FUN(X[[i]], ...)`: This function requires the 'fractaldim' package; please install manually before continuing: install.packages('fractaldim')
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at testClusterFunctions.R:13:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::ncol(getFeatureMatrix(TCells, all.measures))
    5. └─celltrackR::getFeatureMatrix(TCells, all.measures)
    6.   ├─base::do.call(...)
    7.   └─base::lapply(measures, function(m) sapply(tracks, m))
    8.     └─celltrackR FUN(X[[i]], ...)
    9.       └─base::sapply(tracks, m)
   10.         └─base::lapply(X = X, FUN = FUN, ...)
   11.           └─celltrackR FUN(X[[i]], ...)
  ── Error (testClusterFunctions.R:57:3): trackFeatureMap produces the right output ──
  Error in `trackFeatureMap(TCells, c(speed), method = "UMAP")`: clusterTracks: please install the 'uwot' package to use this functionality!
  Backtrace:
      ▆
   1. ├─testthat::expect_true(...) at testClusterFunctions.R:57:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─celltrackR::trackFeatureMap(TCells, c(speed), method = "UMAP")
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 313 ]
  Error: Test failures
  Execution halted