- using R Under development (unstable) (2025-09-03 r88788 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'tidychangepoint/DESCRIPTION' ... OK
- this is package 'tidychangepoint' version '1.0.1'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'tidychangepoint' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s] OK
- checking whether the package can be unloaded cleanly ... [1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [7s] OK
- checking Rd files ... [2s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [8s] ERROR
Running examples in 'tidychangepoint-Ex.R' failed
The error most likely occurred in:
> ### Name: compare_models
> ### Title: Compare various models or algorithms for a given changepoint set
> ### Aliases: compare_models compare_algorithms
>
> ### ** Examples
>
>
> # Segment a times series using PELT
> x <- segment(CET, method = "pelt")
>
> # Compare models
> compare_models(x)
Error in `purrr::map()`:
ℹ In index: 1.
Caused by error in `ll()`:
! could not find function "ll"
Backtrace:
▆
1. ├─tidychangepoint::compare_models(x)
2. │ ├─dplyr::arrange(...)
3. │ ├─dplyr::bind_rows(...)
4. │ │ └─rlang::list2(...)
5. │ └─purrr::map(...)
6. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
7. │ ├─purrr:::with_indexed_errors(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ ├─purrr:::call_with_cleanup(...)
10. │ ├─generics (local) .f(.x[[i]], ...)
11. │ └─tidychangepoint:::glance.mod_cpt(.x[[i]], ...)
12. │ └─tibble::tibble(...)
13. │ └─tibble:::tibble_quos(xs, .rows, .name_repair)
14. │ └─rlang::eval_tidy(xs[[j]], mask)
15. ├─stats::AIC(x)
16. ├─stats:::AIC.default(x)
17. └─base::.handleSimpleError(...)
18. └─purrr (local) h(simpleError(msg, call))
19. └─cli::cli_abort(...)
20. └─rlang::abort(...)
Execution halted
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [30s] ERROR
Running 'testthat.R' [30s]
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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [6s] OK
- checking PDF version of manual ... [24s] OK
- checking HTML version of manual ... [12s] OK
- DONE
Status: 2 ERRORs