- using R version 4.5.1 (2025-06-13 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'RplotterPkg/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'RplotterPkg' version '0.1.3'
- 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 'RplotterPkg' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- 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 ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] 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 examples ... [10s] ERROR
Running examples in 'RplotterPkg-Ex.R' failed
The error most likely occurred in:
> ### 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
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [19s] ERROR
Running 'testthat.R' [18s]
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
- checking PDF version of manual ... [30s] OK
- checking HTML version of manual ... [14s] OK
- DONE
Status: 2 ERRORs