CRAN Package Check Results for Package cards

Last updated on 2025-03-01 09:51:47 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.5.0 8.08 302.88 310.96 ERROR
r-devel-linux-x86_64-debian-gcc 0.5.0 5.24 189.63 194.87 ERROR
r-devel-linux-x86_64-fedora-clang 0.5.1 294.48 OK
r-devel-linux-x86_64-fedora-gcc 0.5.1 548.55 OK
r-devel-macos-arm64 0.5.0 88.00 OK
r-devel-macos-x86_64 0.5.1 171.00 OK
r-devel-windows-x86_64 0.5.0 11.00 167.00 178.00 ERROR
r-patched-linux-x86_64 0.5.0 9.44 296.99 306.43 OK
r-release-linux-x86_64 0.5.0 7.75 295.64 303.39 OK
r-release-macos-arm64 0.5.1 83.00 OK
r-release-macos-x86_64 0.5.0 194.00 OK
r-release-windows-x86_64 0.5.0 9.00 194.00 203.00 OK
r-oldrel-macos-arm64 0.5.1 80.00 OK
r-oldrel-macos-x86_64 0.5.1 188.00 OK
r-oldrel-windows-x86_64 0.5.0 13.00 258.00 271.00 OK

Check Details

Version: 0.5.0
Check: examples
Result: ERROR Running examples in ‘cards-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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: 0x55a93e74fe98> <environment: 0x55a93e747520> > 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 Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [248s/133s] 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 109 | PASS 246 ] ══ Skipped tests (109) ═════════════════════════════════════════════════════════ • 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' • {hms} is not installed (1): 'test-ard_categorical.R:854: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 109 | PASS 246 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.5.0
Check: examples
Result: ERROR Running examples in ‘cards-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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: 0x55f0606994b8> <environment: 0x55f06068bf10> > 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.0
Check: tests
Result: ERROR Running ‘testthat.R’ [151s/80s] 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 109 | PASS 246 ] ══ Skipped tests (109) ═════════════════════════════════════════════════════════ • 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' • {hms} is not installed (1): 'test-ard_categorical.R:854: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 109 | PASS 246 ] Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.5.0
Check: examples
Result: 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: 0x000001632fba8e68> <environment: 0x000001632fba4650> > 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 Flavor: r-devel-windows-x86_64

Version: 0.5.0
Check: tests
Result: ERROR Running 'testthat.R' [91s] 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 109 | PASS 246 ] ══ Skipped tests (109) ═════════════════════════════════════════════════════════ • 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-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', 'test-process_selectors.R:52:3', 'test-process_selectors.R:85: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-rename_ard_columns.R:14:3', 'test-rename_ard_columns.R:25:3', 'test-round5.R:2:3', 'test-rename_ard_groups.R:10:3', 'test-rename_ard_groups.R:19:3', 'test-rename_ard_groups.R:36:3', 'test-shift_ard_columns.R:9:3', 'test-tidy_ard_row_order.R:7: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_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' • {hms} is not installed (1): 'test-ard_categorical.R:854: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 109 | PASS 246 ] Error: Test failures Execution halted Flavor: r-devel-windows-x86_64