Running ‘testthat.R’ [22s/26s]
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(tidychangepoint)
  > 
  > test_check("tidychangepoint")
  
    |                                                                  
    |                                                            |   0%
    |                                                                  
    |==============================                              |  50%
    |                                                                  
    |============================================================| 100%
  
    |                                                                  
    |                                                            |   0%
    |                                                                  
    |==============================                              |  50%
    |                                                                  
    |============================================================| 100%
  
  > y: Contains 1096 observations, ranging from 13.67  to 298.98  .
  i Segmenter (class cpt )
  > A: Used the PELT algorithm from the changepoint  package.
  > τ: Found 3 changepoint(s).
  > f: Reported a fitness value of 9.40 k using the MBIC penalty.
  i Model
  > M: Fit the meanvar  model.
  > θ: Estimated 2 parameter(s), for each of 4 region(s).
  
  > y: Contains 1096 observations, ranging from 13.67  to 298.98  .
  i Segmenter (class )
  > A: Used the manual algorithm from the tidychangepoint  package.
  > τ: Found 2 changepoint(s).
  > f: Reported a fitness value of 10.54 k using the BIC penalty.
  i Model
  > M: Fit the meanshift_norm  model.
  > θ: Estimated 1 parameter(s), for each of 3 region(s).
  Scale for x is already present.
  Adding another scale for x, which will replace the existing scale.
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 267 ]
  
  ══ Skipped tests (11) ══════════════════════════════════════════════════════════
  • Skipping (11): 'test-changepoint.R:29:3', 'test-changepointGA.R:2:3',
    'test-performance.R:2:3', 'test-performance.R:16:3',
    'test-performance.R:27:3', 'test-performance.R:44:3',
    'test-performance.R:61:3', 'test-performance.R:75:3',
    'test-performance.R:110:3', 'test-performance.R:140:3', 'test-stats.R:95:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-nhpp.R:11:3'): generics works ──────────────────────────────────
  Error in `ll(object)`: could not find function "ll"
  Backtrace:
       ▆
    1. ├─testthat::expect_s3_class(glance(theta), "tbl_df") at test-nhpp.R:11:3
    2. │ └─testthat::quasi_label(enquo(object), arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─generics::glance(theta)
    5. ├─tidychangepoint:::glance.nhpp(theta)
    6. ├─base::NextMethod()
    7. ├─tidychangepoint:::glance.mod_cpt(theta)
    8. │ └─tibble::tibble(...)
    9. │   └─tibble:::tibble_quos(xs, .rows, .name_repair)
   10. │     └─rlang::eval_tidy(xs[[j]], mask)
   11. ├─stats::AIC(x)
   12. └─stats:::AIC.default(x)
  
  [ FAIL 1 | WARN 0 | SKIP 11 | PASS 267 ]
  Error: Test failures
  Execution halted