R Under development (unstable) (2024-06-18 r86781 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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% [ FAIL 7 | WARN 0 | SKIP 10 | PASS 249 ] ══ Skipped tests (10) ══════════════════════════════════════════════════════════ • Skipping (10): 'test-changepoint.R:29: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:85:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-stats.R:55:3'): values match ───────────────────────────────── round(trend_ar1$model_params[["sigma_hatsq"]], 3) (`actual`) not equal to 0.29 (`expected`). `actual`: 0.5 `expected`: 0.3 ── Failure ('test-stats.R:57:3'): values match ───────────────────────────────── round(as.numeric(logLik(trend_ar1))) (`actual`) not equal to round(-288.8) (`expected`). `actual`: -403 `expected`: -289 ── Failure ('test-stats.R:58:3'): values match ───────────────────────────────── round(BIC(trend_ar1)) (`actual`) not equal to round(654.19) (`expected`). `actual`: 883 `expected`: 654 ── Failure ('test-stats.R:59:3'): values match ───────────────────────────────── floor(MDL(trend_ar1)) (`actual`) not equal to floor(656.52) (`expected`). `actual`: 885 `expected`: 656 ── Failure ('test-stats.R:60:3'): values match ───────────────────────────────── round(trend_ar1$model_params[["phi_hat"]], 3) (`actual`) not equal to 0.058 (`expected`). `actual`: 1.0 `expected`: 0.1 ── Failure ('test-stats.R:77:3'): values match ───────────────────────────────── round(model_variance(trend_ar1_trunc), 3) (`actual`) not equal to 0.305 (`expected`). `actual`: 0.6 `expected`: 0.3 ── Failure ('test-stats.R:78:3'): values match ───────────────────────────────── round(trend_ar1_trunc$model_params[["phi_hat"]], 3) (`actual`) not equal to 0.073 (`expected`). `actual`: 1.0 `expected`: 0.1 [ FAIL 7 | WARN 0 | SKIP 10 | PASS 249 ] Error: Test failures Execution halted