Running ‘testthat.R’ [9s/108s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(TDApplied)
  > 
  > test_check("TDApplied")
  [ FAIL 10 | WARN 0 | SKIP 13 | PASS 146 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (8)
  • T is TRUE (5)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-MDS.R:51'): diagram_mds can accept inputs from TDA, TDAstats and diagram_to_df ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-MDS.R:51:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-bootstrap.R:54'): bootstrap_persistence_thresholds can detect incorrect parameters correctly ──
  Error in `bootstrap_persistence_thresholds(data.frame(x = 1:10, y = 1:10), 
      FUN = "ripsDiag", maxdim = 1, thresh = 2, calculate_representatives = c(T, 
          F))`: To use the 'ripsDiag' function the package TDA must be installed.
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-bootstrap.R:54:2
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─TDApplied::bootstrap_persistence_thresholds(...)
  ── Error ('test-convert.R:4'): diagram_to_df can accept the right kinds of input ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-convert.R:4:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-distance.R:16'): diagram_distance can accept inputs from either TDA/TDAstats homology output or diagram_to_df function, with or without cycle location ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-distance.R:16:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-inference.R:4'): permutation_test detects incorrect parameters correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-inference.R:4:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-inference.R:24'): permutation_test can accept inputs from TDA, TDAstats and diagram_to_df ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-inference.R:24:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-inference.R:55'): independence_test detects incorrect parameters correctly ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. ├─base::lapply(...) at test-inference.R:55:2
   2. │ └─TDApplied (local) FUN(X[[i]], ...)
   3. └─base::loadNamespace(x) at test-inference.R:55:41
   4.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   5.     └─base (local) withOneRestart(expr, restarts[[1L]])
   6.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-inference.R:71'): independence_test can accept inputs from TDA, TDAstats and diagram_to_df ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-inference.R:71:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-kernel.R:15'): diagram_kernel can accept inputs from either TDA/TDAstats homology output or diagram_to_df function, with or without cycle location ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-kernel.R:15:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-pca.R:33'): diagram_kpca can accept inputs from TDA, TDAstats and diagram_to_df ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'TDA'
  Backtrace:
      ▆
   1. └─base::loadNamespace(x) at test-pca.R:33:2
   2.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   3.     └─base (local) withOneRestart(expr, restarts[[1L]])
   4.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 10 | WARN 0 | SKIP 13 | PASS 146 ]
  Error: Test failures
  Execution halted