* using log directory 'd:/Rcompile/CRANpkg/local/4.5/manymodelr.Rcheck' * using R Under development (unstable) (2025-03-05 r87891 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'manymodelr/DESCRIPTION' ... OK * this is package 'manymodelr' version '0.3.7' * 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 'manymodelr' 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 ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [4s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] OK * checking whether startup messages can be suppressed ... [4s] 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 ... [9s] 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 ... [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 ... [5s] ERROR Running examples in 'manymodelr-Ex.R' failed The error most likely occurred in: > ### Name: agg_by_group > ### Title: A convenient way to perform grouped operations > ### Aliases: agg_by_group > > ### ** Examples > > head(agg_by_group(airquality,.~Month,sum)) Error in gsub(as.character(pattern), as.character(replacement), x, ignore.case, : NA in coercion to boolean Calls: head ... sub -> is.factor -> mysub -> sub -> is.factor -> gsub Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [9s] ERROR Running 'testthat.R' [8s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(manymodelr) Loading required package: caret Loading required package: ggplot2 Loading required package: lattice Loading required package: Metrics Attaching package: 'Metrics' The following objects are masked from 'package:caret': precision, recall Loading required package: e1071 Welcome to manymodelr. This is manymodelr version 0.3.7. Please file issues and feedback at https://www.github.com/Nelson-Gon/manymodelr/issues Turn this message off using 'suppressPackageStartupMessages(library(manymodelr))' Happy Modelling! :) > data("yields", package = "manymodelr") > test_check("manymodelr") [1] ### Ordered by height ### [1] ### Ordered by height ### [ FAIL 1 | WARN 5 | SKIP 0 | PASS 94 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_agg_by_group.R:11:5'): agg_by_group test ─────────────────────── Error in `gsub(as.character(pattern), as.character(replacement), x, ignore.case, perl, fixed, useBytes)`: NA in coercion to boolean Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test_agg_by_group.R:11:5 2. │ └─testthat::quasi_label(enquo(object), label, arg = "object") 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─manymodelr::agg_by_group(yields, . ~ normal, length) 5. └─manymodelr:::agg_by_group.data.frame(yields, . ~ normal, length) 6. ├─base::trimws(...) 7. │ ├─base (local) mysub(...) 8. │ │ └─base::sub(re, "", x, perl = TRUE) 9. │ │ └─base::is.factor(x) 10. │ └─base (local) mysub(paste0("^", whitespace, "+"), x) 11. │ └─base::sub(re, "", x, perl = TRUE) 12. │ └─base::is.factor(x) 13. └─base::gsub(...) [ FAIL 1 | WARN 5 | SKIP 0 | PASS 94 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [29s] ERROR Error(s) in re-building vignettes: --- re-building 'correlations.rmd' using rmarkdown --- finished re-building 'correlations.rmd' --- re-building 'manymodelr_vignette.rmd' using rmarkdown Quitting from lines 296-299 [unnamed-chunk-22] (manymodelr_vignette.rmd) Error: processing vignette 'manymodelr_vignette.rmd' failed with diagnostics: NA in coercion to boolean --- failed re-building 'manymodelr_vignette.rmd' --- re-building 'misc.rmd' using rmarkdown Quitting from lines 30-34 [unnamed-chunk-2] (misc.rmd) Error: processing vignette 'misc.rmd' failed with diagnostics: NA in coercion to boolean --- failed re-building 'misc.rmd' --- re-building 'modeling.rmd' using rmarkdown --- finished re-building 'modeling.rmd' SUMMARY: processing the following files failed: 'manymodelr_vignette.rmd' 'misc.rmd' Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [4s] OK * DONE Status: 3 ERRORs