* using log directory 'd:/RCompile/CRANincoming/R-devel/tidychangepoint.Rcheck' * using R Under development (unstable) (2024-06-18 r86781 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.2.0 GNU Fortran (GCC) 13.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 '0.0.1' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Benjamin S. Baumer ' New submission Possibly misspelled words in DESCRIPTION: Changepoint (2:29, 23:14) changepoint (27:15) * 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 * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... 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 ... 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 ... [56s] NOTE Examples with CPU (user + system) or elapsed time > 10s user system elapsed diagnose 10.90 0.26 11.18 as.model 10.43 0.17 10.60 * checking for unstated dependencies in 'tests' ... OK * checking tests ... [20s] ERROR Running 'testthat.R' [20s] 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% [ 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... [14s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 2 NOTEs