- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘RplotterPkg/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘RplotterPkg’ version ‘0.1.4’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 ‘RplotterPkg’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [2s/3s] 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 ... [15s/18s] OK
- checking Rd files ... [0s/1s] 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 ... [0s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [3s/4s] ERROR
Running examples in ‘RplotterPkg-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: create_box_plot
> ### Title: create_box_plot
> ### Aliases: create_box_plot
>
> ### ** Examples
>
> library(ggplot2)
Attaching package: ‘ggplot2’
The following object is masked from ‘package:RplotterPkg’:
midwest
> library(data.table)
Attaching package: ‘data.table’
The following object is masked from ‘package:base’:
%notin%
> library(RplotterPkg)
>
> RplotterPkg::create_box_plot(
+ df = RplotterPkg::organdata,
+ aes_x = "country",
+ aes_y = "donors",
+ aes_label = "donors",
+ order_by_median = "desc",
+ y_limits = c(5,35),
+ y_major_breaks = seq(5, 35, 5),
+ title = "Organ Donation Rate per Million",
+ subtitle = "Showing outlier rates",
+ x_title = "Country",
+ y_title = "Donor Rate",
+ do_coord_flip = TRUE,
+ box_color = "purple",
+ box_line_width = 0.8,
+ rot_y_tic_label = TRUE,
+ ol_color = "red",
+ ol_size = 1.5
+ )
Error in `[.data.table`(dt, , `:=`(outliers, check_outlier(get(aes_y))), :
attempt access index 2/2 in VECTOR_ELT
Calls: <Anonymous> -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [28s/35s] ERROR
Running ‘testthat.R’ [28s/35s]
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")
Saving _problems/test-create_box_plot-28.R
Saving _problems/test-create_box_plot-57.R
[ FAIL 2 | WARN 34 | SKIP 29 | PASS 120 ]
══ Skipped tests (29) ══════════════════════════════════════════════════════════
• On CRAN (29): 'test-create_bar_plot.R:8:1', 'test-create_bar_plot.R:30:1',
'test-create_bar_plot.R:49:1', 'test-create_box_plot.R:63:1',
'test-create_density_plot.R:8:1', 'test-create_density_plot.R:30:1',
'test-create_density_plot.R:50:1', 'test-create_density_plot.R:70:1',
'test-create_density_ridge_plot.R:10:1', 'test-create_heatmap.R:9:1',
'test-create_histogram_plot.R:7:1', 'test-create_histogram_plot.R:37:1',
'test-create_range_plot.R:7:1', 'test-create_raster_plot.R:6:1',
'test-create_scatter_plot.R:6:1', 'test-create_scatter_plot.R:36:1',
'test-create_scatter_plot.R:58:1', 'test-create_sf_plot.R:7:1',
'test-create_stick_plot.R:6:1', 'test-create_table.R:9:1',
'test-create_table_graphic.R:8:1', 'test-create_waffle_chart.R:8:1',
'test-create_waffle_chart.R:26:1', 'test-get_grob_component.R:7:1',
'test-multi_panel_grid.R:9:1', 'test-percentile_table.R:7:1',
'test-spread_level_plot.R:7:1', 'test-stem_leaf_display.R:10:1',
'test-symmetry_plot.R:7:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-create_box_plot.R:9:3'): create_box_plot() aes_y aes_label ─────
Error in ``[.data.table`(dt, , `:=`(outliers, check_outlier(get(aes_y))), by = aes_x)`: attempt access index 7/7 in VECTOR_ELT
Backtrace:
▆
1. └─RplotterPkg::create_box_plot(...)
2. ├─dt[, `:=`(outliers, check_outlier(get(aes_y))), by = aes_x]
3. └─data.table:::`[.data.table`(...)
── Error ('test-create_box_plot.R:35:3'): create_box_plot() aes_x, aes_y aes_label ──
Error in ``[.data.table`(dt, , `:=`(outliers, check_outlier(get(aes_y))), by = aes_x)`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─RplotterPkg::create_box_plot(...)
2. ├─dt[, `:=`(outliers, check_outlier(get(aes_y))), by = aes_x]
3. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 34 | SKIP 29 | PASS 120 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs