* using log directory 'd:/Rcompile/CRANpkg/local/4.5/halk.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'halk/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'halk' version '0.0.5' * 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 'halk' can be installed ... OK * 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 ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [4s] OK * checking Rd files ... [1s] 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 ... [1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking R/sysdata.rda ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [3s] ERROR Running examples in 'halk-Ex.R' failed The error most likely occurred in: > ### Name: calc_stat_scores > ### Title: Compute test statistics for comparing actual and estimated ages > ### Aliases: calc_stat_scores calc_ks_score calc_chi_score > > ### ** Examples > > halk <- make_halk(spp_data, levels = c("spp")) > newdat <- laa_data > newdat$spp <- "bluegill" > pred_ages <- assign_ages(newdat, halk) > calc_ks_score(pred_ages) Error in `dplyr::summarize()`: ℹ In argument: `ks.stat = purrr::map_df(...)`. ℹ In group 1: `spp = "bluegill"`. Caused by error: ! `ks.stat` must be size 1, not 11. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─halk::calc_ks_score(pred_ages) 2. │ └─... %>% dplyr::ungroup() 3. ├─dplyr::ungroup(.) 4. ├─tidyr::unnest(., cols = c(.data$ks.stat)) 5. ├─dplyr::summarize(...) 6. ├─dplyr:::summarise.grouped_df(...) 7. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 8. │ └─base::withCallingHandlers(...) 9. ├─dplyr:::dplyr_internal_error(...) 10. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 11. │ └─rlang:::signal_abort(cnd, .file) 12. │ └─base::signalCondition(cnd) 13. └─dplyr (local) ``(``) 14. └─dplyr (local) handler(cnd) 15. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [21s] OK Running 'testthat.R' [21s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [9s] OK * checking PDF version of manual ... [19s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 1 ERROR