Last updated on 2025-09-25 03:51:42 CEST.
Package | ERROR | OK |
---|---|---|
RcensusPkg | 13 | |
RplotterPkg | 1 | 12 |
Current CRAN status: OK: 13
Current CRAN status: ERROR: 1, OK: 12
Version: 0.1.3
Check: examples
Result: ERROR
Running examples in ‘RplotterPkg-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: create_table
> ### Title: create_table
> ### Aliases: create_table
>
> ### ** Examples
>
> library(gt)
> library(glue)
> library(purrr)
> library(RplotterPkg)
>
> RplotterPkg::create_table(
+ df = RplotterPkg::people,
+ container_width_px = 500,
+ col_label_lst = list(
+ col_0 = "ID",
+ col_1 = "First Name",
+ col_2 = "Last Name",
+ col_3 = "Age",
+ col_4 = "Address",
+ col_5 = "Spouse"
+ ),
+ decimals_lst = list(
+ cols = 4,
+ decimal = 0
+ ),
+ rowname_col = "ID",
+ source_note = "Source: *Chardon City Directory*",
+ footnote_title = "Employees are current",
+ footnote_col_head_lst = list(
+ footnote = "As reported on their job application",
+ col = c(2,3)
+ ),
+ footnote_body_lst = list(
+ footnote = "Age is approximated",
+ col = 4,
+ row = c(1,2)
+ )
+ )
Error in `gt()`:
! The column(s) "ID" specified in `rowname_col` do not exist in the
data.
• Available columns are: "col_0", "col_1", "col_2", "col_3", "col_4", and
"col_5"
Backtrace:
▆
1. └─RplotterPkg::create_table(...)
2. ├─gt::tab_header(...)
3. │ └─gt:::stop_if_not_gt_tbl(data = data)
4. │ └─gt:::is_gt_tbl(data = data)
5. └─gt::gt(data = df, rowname_col = rowname_col, caption = caption)
6. └─cli::cli_abort(...)
7. └─rlang::abort(...)
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.3
Check: tests
Result: ERROR
Running ‘testthat.R’ [17s/22s]
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(RplotterPkg)
Attaching package: 'RplotterPkg'
The following object is masked from 'package:datasets':
sleep
>
> test_check("RplotterPkg")
[ FAIL 1 | WARN 0 | SKIP 30 | PASS 65 ]
══ Skipped tests (30) ══════════════════════════════════════════════════════════
• On CRAN (30): 'test-create_bar_plot.R:9:3', 'test-create_bar_plot.R:31:3',
'test-create_bar_plot.R:50:3', 'test-create_box_plot.R:9:3',
'test-create_box_plot.R:35:3', 'test-create_box_plot.R:64:3',
'test-create_density_plot.R:9:3', 'test-create_density_plot.R:31:3',
'test-create_density_plot.R:51:3', 'test-create_density_plot.R:71:3',
'test-create_density_ridge_plot.R:11:3', 'test-create_heatmap.R:10:3',
'test-create_histogram_plot.R:8:3', 'test-create_histogram_plot.R:38:3',
'test-create_range_plot.R:8:3', 'test-create_raster_plot.R:7:3',
'test-create_scatter_plot.R:7:3', 'test-create_scatter_plot.R:37:3',
'test-create_scatter_plot.R:59:3', 'test-create_sf_plot.R:8:3',
'test-create_stick_plot.R:7:3', 'test-create_table_graphic.R:9:3',
'test-create_waffle_chart.R:9:3', 'test-create_waffle_chart.R:27:3',
'test-get_grob_component.R:8:3', 'test-multi_panel_grid.R:10:3',
'test-percentile_table.R:8:3', 'test-spread_level_plot.R:8:3',
'test-stem_leaf_display.R:11:3', 'test-symmetry_plot.R:8:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-create_table.R:10:3'): create_table() ──────────────────────────
Error in `gt(data = df, rowname_col = rowname_col, caption = caption)`: The column(s) "ID" specified in `rowname_col` do not exist in the data.
* Available columns are: "col_0", "col_1", "col_2", "col_3", "col_4", and "col_5"
Backtrace:
▆
1. └─RplotterPkg::create_table(...)
2. ├─gt::tab_header(...)
3. │ └─gt:::stop_if_not_gt_tbl(data = data)
4. │ └─gt:::is_gt_tbl(data = data)
5. └─gt::gt(data = df, rowname_col = rowname_col, caption = caption)
6. └─cli::cli_abort(...)
7. └─rlang::abort(...)
[ FAIL 1 | WARN 0 | SKIP 30 | PASS 65 ]
Error: Test failures
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc