Running ‘testthat.R’
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(lookout)
  > 
  > test_check("lookout")
  Saving _problems/test-lookout-11.R
  Saving _problems/test-lookout-30.R
  Saving _problems/test-lookout-38.R
  Saving _problems/test-lookout-47.R
  Saving _problems/test-lookout-53.R
  Saving _problems/test-lookout-59.R
  Saving _problems/test-lookout-65.R
  Saving _problems/test-lookout-75.R
  Saving _problems/test-lookout-81.R
  Saving _problems/test-lookout-86.R
  Saving _problems/test-lookout-91.R
  Saving _problems/test-lookout-114.R
  Saving _problems/test-lookout-121.R
  Saving _problems/test-lookout-127.R
  Saving _problems/test-lookout-134.R
  [ FAIL 15 | WARN 0 | SKIP 0 | PASS 17 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-lookout.R:11:3'): lookout returns correct structure ────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean) at test-lookout.R:11:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:30:3'): lookout detects obvious outliers ─────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_outliers) at test-lookout.R:30:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:38:3'): lookout output lengths are consistent with input ──
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean) at test-lookout.R:38:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:47:3'): lookout probabilities are in [0, 1] ──────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean) at test-lookout.R:47:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:53:3'): lookout scores are in [0, 1] ─────────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean) at test-lookout.R:53:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:59:3'): lookout kde values are non-negative ──────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean) at test-lookout.R:59:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:65:3'): lookout accepts matrix input ─────────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(as.matrix(X_clean)) at test-lookout.R:65:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:75:3'): lookout respects alpha threshold ─────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_outliers, alpha = 1e-06) at test-lookout.R:75:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:81:3'): lookout old_version works ────────────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean, old_version = TRUE) at test-lookout.R:81:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:86:3'): lookout scale = FALSE works ──────────────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean, scale = FALSE) at test-lookout.R:86:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:91:3'): lookout with pre-supplied gpd parameters works ──
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X_clean) at test-lookout.R:91:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:114:3'): lookout works with univariate input ─────────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::lookout(X1d) at test-lookout.R:114:3
   2.   └─lookout::find_tda_bw(X, fast = fast, gamma, use_differences = old_version)
  ── Error ('test-lookout.R:121:3'): find_tda_bw returns a positive scalar ───────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::find_tda_bw(X_clean, fast = TRUE) at test-lookout.R:121:3
  ── Error ('test-lookout.R:127:3'): find_tda_bw fast and slow give similar results ──
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::find_tda_bw(X_clean, fast = TRUE) at test-lookout.R:127:3
  ── Error ('test-lookout.R:134:3'): find_tda_bw use_differences = TRUE works ────
  Error in `mlpack::emst(X)$output`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─lookout::find_tda_bw(X_clean, fast = TRUE, use_differences = TRUE) at test-lookout.R:134:3
  
  [ FAIL 15 | WARN 0 | SKIP 0 | PASS 17 ]
  Error:
  ! Test failures.
  Execution halted