* using log directory ‘/data/gannet/ripley/R/packages/tests-devel/cards.Rcheck’ * using R Under development (unstable) (2025-02-26 r87830) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘cards/DESCRIPTION’ ... OK * this is package ‘cards’ version ‘0.5.0’ * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘cards’ can be installed ... [13s/20s] OK See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/cards-00install.html' for details. * checking package 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 ... [21s/32s] 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 examples ... ERROR Running examples in ‘cards-Ex.R’ failed The error most likely occurred in: > ### Name: alias_as_fmt_fn > ### Title: Convert Alias to Function > ### Aliases: alias_as_fmt_fn > > ### ** Examples > > alias_as_fmt_fn(1) function (x) { res <- ifelse(is.na(x), NA_character_, str_trim(format(round_fun(x * scale, digits = digits), nsmall = digits))) if (!is.null(width)) { res <- ifelse(nchar(res) >= width | is.na(res), res, paste0(strrep(" ", width - nchar(res)), res)) } res } <bytecode: 0x2724dee0> <environment: 0x2724f878> > alias_as_fmt_fn("xx.x") Error in strsplit(x, as.character(split), fixed, perl, useBytes) : NA in coercion to Rboolean Calls: alias_as_fmt_fn -> ifelse -> %>% -> unlist -> strsplit Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [376s/267s] ERROR Running ‘testthat.R’ [376s/266s] 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(cards) Attaching package: 'cards' The following object is masked from 'package:testthat': matches > > test_check("cards") Starting 2 test processes [ FAIL 1 | WARN 0 | SKIP 108 | PASS 248 ] â•â• Skipped tests (108) â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• • On CRAN (108): 'test-apply_fmt_fn.R:76:3', 'test-apply_fmt_fn.R:119:3', 'test-add_calculated_row.R:2:3', 'test-add_calculated_row.R:25:3', 'test-add_calculated_row.R:33:3', 'test-ard_attributes.R:5:3', 'test-ard_attributes.R:29:3', 'test-ard_complex.R:87:3', 'test-ard_complex.R:130:3', 'test-ard_categorical.R:6:3', 'test-ard_categorical.R:77:3', 'test-ard_categorical.R:103:3', 'test-ard_categorical.R:221:3', 'test-ard_categorical.R:245:3', 'test-ard_categorical.R:403:3', 'test-ard_categorical.R:510:3', 'test-ard_categorical.R:644:3', 'test-ard_categorical.R:724:3', 'test-ard_categorical.R:833:3', 'test-ard_categorical.R:875:3', 'test-ard_categorical.R:1102:3', 'test-ard_dichotomous.R:11:3', 'test-ard_dichotomous.R:46:3', 'test-ard_dichotomous.R:100:3', 'test-ard_hierarchical.R:12:3', 'test-ard_hierarchical.R:97:3', 'test-ard_hierarchical.R:107:3', 'test-ard_hierarchical.R:141:3', 'test-ard_hierarchical.R:234:3', 'test-ard_hierarchical.R:287:3', 'test-ard_hierarchical.R:310:3', 'test-ard_missing.R:7:3', 'test-ard_missing.R:31:3', 'test-ard_pairwise.R:54:3', 'test-ard_pairwise.R:90:3', 'test-ard_pairwise.R:98:3', 'test-ard_stack.R:251:3', 'test-ard_stack.R:269:3', 'test-ard_stack.R:300:3', 'test-ard_stack_hierarchical.R:52:3', 'test-ard_stack_hierarchical.R:78:3', 'test-ard_stack_hierarchical.R:144:3', 'test-ard_stack_hierarchical.R:158:3', 'test-ard_stack_hierarchical.R:243:3', 'test-ard_stack_hierarchical.R:257:3', 'test-ard_stack_hierarchical.R:351:3', 'test-ard_stack_hierarchical.R:426:3', 'test-ard_stack_hierarchical.R:437:3', 'test-ard_stack_hierarchical.R:472:3', 'test-ard_stack_hierarchical.R:510:3', 'test-ard_strata.R:2:3', 'test-ard_total_n.R:2:3', 'test-as_card.R:2:3', 'test-as_card.R:22:3', 'test-as_nested_list.R:2:3', 'test-bind_ard.R:14:3', 'test-bind_ard.R:28:3', 'test-bind_ard.R:59:3', 'test-check_ard_structure.R:2:3', 'test-eval_capture_conditions.R:3:3', 'test-eval_capture_conditions.R:46:3', 'test-eval_capture_conditions.R:72:3', 'test-get_ard_statistics.R:4:3', 'test-mock.R:3:3', 'test-mock.R:14:3', 'test-mock.R:26:3', 'test-mock.R:36:3', 'test-mock.R:47:3', 'test-mock.R:58:3', 'test-mock.R:69:3', 'test-mock.R:79:3', 'test-mock.R:90:3', 'test-mock.R:99:3', 'test-mock.R:107:3', 'test-options.R:31:3', 'test-print.R:2:3', 'test-print_ard_conditions.R:3:3', 'test-print_ard_conditions.R:71:3', 'test-print_ard_conditions.R:100:3', 'test-print_ard_conditions.R:131:3', 'test-print_ard_conditions.R:145:3', 'test-process_selectors.R:52:3', 'test-process_selectors.R:85:3', 'test-rename_ard_columns.R:14:3', 'test-rename_ard_columns.R:25:3', 'test-rename_ard_groups.R:10:3', 'test-rename_ard_groups.R:19:3', 'test-rename_ard_groups.R:36:3', 'test-round5.R:2:3', 'test-shift_ard_columns.R:9:3', 'test-shuffle_ard.R:9:3', 'test-shuffle_ard.R:68:3', 'test-shuffle_ard.R:79:3', 'test-shuffle_ard.R:198:3', 'test-tidy_ard_row_order.R:7:3', 'test-tidy_as_ard.R:3:3', 'test-update_ard.R:12:3', 'test-update_ard.R:21:3', 'test-update_ard.R:30:3', 'test-update_ard.R:58:3', 'test-update_ard.R:66:3', 'test-ard_continuous.R:7:3', 'test-ard_continuous.R:35:3', 'test-ard_continuous.R:86:3', 'test-ard_continuous.R:106:3', 'test-ard_continuous.R:234:3', 'test-ard_continuous.R:288:3', 'test-ard_continuous.R:421:3' â•â• Failed tests â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• ── Error ('test-apply_fmt_fn.R:44:3'): apply_fmt_fn() works with xx specification ── <dplyr:::mutate_error/rlang_error/error/condition> Error in `dplyr::mutate(x, stat_fmt = pmap(list(.data$stat, .data$variable, .data$stat_name, .data$fmt_fn, .data$stat_fmt), function(stat, variable, stat_name, fn, stat_fmt) { if (!is.null(fn) && is.null(stat_fmt)) { tryCatch(do.call(alias_as_fmt_fn(fn, variable, stat_name), args = list(stat)), error = function(e) { cli::cli_abort(c("There was an error applying the formatting function to\n statistic {.val {stat_name}} for variable {.val {variable}}.", i = "Perhaps try formmatting function {.fun as.character}? See error message below:", x = conditionMessage(e)), call = get_cli_abort_call()) }) } else { stat_fmt } }))`: i In argument: `stat_fmt = pmap(...)`. Caused by error in `apply_fmt_fn()`: ! There was an error applying the formatting function to statistic "mean" for variable "mpg". i Perhaps try formmatting function `as.character()`? See error message below: x NA in coercion to Rboolean [ FAIL 1 | WARN 0 | SKIP 108 | PASS 248 ] Error: Test failures Execution halted * checking PDF version of manual ... [11s/12s] OK * checking HTML version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs