R Under development (unstable) (2026-01-15 r89304) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(openxlsx2) > > test_check("openxlsx2") helper_functions.cpp:156:42: runtime error: -1 is outside the range of representable values of type 'unsigned int' #0 0x7fa4ebc285eb in ox_int_to_col(Rcpp::Vector<14, Rcpp::PreserveStorage>) /data/gannet/ripley/R/packages/tests-clang-UBSAN/openxlsx2/src/helper_functions.cpp:156:42 #1 0x7fa4ebc053be in _openxlsx2_ox_int_to_col /data/gannet/ripley/R/packages/tests-clang-UBSAN/openxlsx2/src/RcppExports.cpp:67:34 #2 0x55d0e4a26010 in R_doDotCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0x8f010) #3 0x55d0e4a74daf in bcEval_loop eval.c #4 0x55d0e4a5dbeb in bcEval eval.c #5 0x55d0e4a5d374 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6374) #6 0x55d0e4a7a768 in R_execClosure eval.c #7 0x55d0e4a79c6b in applyClosure_core eval.c #8 0x55d0e4a5d7c5 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67c5) #9 0x55d0e4a23f9b in do_External (/data/gannet/ripley/R/R-clang/bin/exec/R+0x8cf9b) #10 0x55d0e4a657ea in bcEval_loop eval.c #11 0x55d0e4a5dbeb in bcEval eval.c #12 0x55d0e4a5d374 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6374) #13 0x55d0e4a7a768 in R_execClosure eval.c #14 0x55d0e4a79c6b in applyClosure_core eval.c #15 0x55d0e4a5d7c5 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67c5) #16 0x55d0e4a7ee2a in do_begin (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe7e2a) #17 0x55d0e4a5d59f in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc659f) #18 0x55d0e4a811d7 in do_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xea1d7) #19 0x55d0e4a657ea in bcEval_loop eval.c #20 0x55d0e4a5dbeb in bcEval eval.c #21 0x55d0e4a5d374 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6374) #22 0x55d0e4a7a768 in R_execClosure eval.c #23 0x55d0e4a79c6b in applyClosure_core eval.c #24 0x55d0e4a5d7c5 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67c5) #25 0x55d0e4a815b7 in do_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xea5b7) #26 0x55d0e4a657ea in bcEval_loop eval.c #27 0x55d0e4a5dbeb in bcEval eval.c #28 0x55d0e4a5d374 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6374) #29 0x55d0e4a7a768 in R_execClosure eval.c #30 0x55d0e4a79c6b in applyClosure_core eval.c #31 0x55d0e4a7d144 in R_forceAndCall (/data/gannet/ripley/R/R-clang/bin/exec/R+0xe6144) #32 0x55d0e49ac7db in do_lapply (/data/gannet/ripley/R/R-clang/bin/exec/R+0x157db) #33 0x55d0e4ac4bc7 in do_internal (/data/gannet/ripley/R/R-clang/bin/exec/R+0x12dbc7) #34 0x55d0e4a65a6b in bcEval_loop eval.c #35 0x55d0e4a5dbeb in bcEval eval.c #36 0x55d0e4a5d374 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc6374) #37 0x55d0e4a7a768 in R_execClosure eval.c #38 0x55d0e4a79c6b in applyClosure_core eval.c #39 0x55d0e4a5d7c5 in Rf_eval (/data/gannet/ripley/R/R-clang/bin/exec/R+0xc67c5) #40 0x55d0e4aaf717 in Rf_ReplIteration (/data/gannet/ripley/R/R-clang/bin/exec/R+0x118717) #41 0x55d0e4ab121e in run_Rmainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x11a21e) #42 0x55d0e4ab128a in Rf_mainloop (/data/gannet/ripley/R/R-clang/bin/exec/R+0x11a28a) #43 0x55d0e4998da7 in main (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1da7) #44 0x7fa4fca115f4 in __libc_start_call_main (/lib64/libc.so.6+0x35f4) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #45 0x7fa4fca116a7 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x36a7) (BuildId: a1dda014206b55b07f58fe8db80121b752dc3d03) #46 0x55d0e4998cc4 in _start (/data/gannet/ripley/R/R-clang/bin/exec/R+0x1cc4) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior helper_functions.cpp:156:42 Saving _problems/test-wb_styles-1056.R Saving _problems/test-wb_styles-1062.R Saving _problems/test-wb_styles-1188.R Saving _problems/test-wb_styles-1267.R [ FAIL 4 | WARN 0 | SKIP 80 | PASS 2028 ] ══ Skipped tests (80) ══════════════════════════════════════════════════════════ • !file.exists("C:\\Program Files\\7-zip\\7z.exe") is TRUE (1): 'test-loading_workbook.R:583:3' • On CRAN (15): 'test-conditional_formatting.R:1390:3', 'test-conditional_formatting.R:1420:3', 'test-date_time_conversion.R:66:3', 'test-pugi_cpp.R:203:3', 'test-read_sources.R:3:3', 'test-read_sources.R:29:3', 'test-read_sources.R:197:3', 'test-read_sources.R:312:3', 'test-read_sources.R:517:3', 'test-read_xlsb.R:3:3', 'test-read_xlsb.R:24:3', 'test-read_xlsb.R:68:3', 'test-read_xlsb.R:169:3', 'test-read_xlsb.R:182:3', 'test-write.R:944:3' • Skip on CRAN (64): 'test-class-comment.R:63:3', 'test-class-workbook-wrappers.R:288:3', 'test-class-workbook.R:377:3', 'test-class-workbook.R:873:3', 'test-cloneWorksheet.R:8:3', 'test-cloneWorksheet.R:22:3', 'test-cloneWorksheet.R:113:3', 'test-cloneWorksheet.R:260:3', 'test-conditional_formatting.R:290:3', 'test-conditional_formatting.R:450:3', 'test-formulas.R:3:3', 'test-loading_workbook.R:4:3', 'test-loading_workbook.R:20:3', 'test-loading_workbook.R:46:3', 'test-loading_workbook.R:64:3', 'test-loading_workbook.R:156:3', 'test-loading_workbook.R:193:3', 'test-loading_workbook.R:294:3', 'test-loading_workbook.R:316:3', 'test-loading_workbook.R:347:3', 'test-loading_workbook.R:407:3', 'test-loading_workbook.R:418:3', 'test-loading_workbook.R:622:3', 'test-loading_workbook.R:648:3', 'test-loading_workbook_tables.R:4:3', 'test-named_regions.R:64:3', 'test-named_regions.R:124:3', 'test-read_sources.R:46:3', 'test-read_sources.R:57:3', 'test-read_sources.R:74:3', 'test-read_sources.R:82:3', 'test-read_sources.R:92:3', 'test-read_sources.R:143:3', 'test-read_sources.R:214:3', 'test-read_sources.R:232:3', 'test-read_sources.R:252:3', 'test-read_sources.R:274:3', 'test-read_sources.R:290:3', 'test-read_sources.R:334:3', 'test-read_sources.R:365:3', 'test-read_sources.R:375:3', 'test-read_sources.R:392:3', 'test-read_sources.R:401:3', 'test-read_sources.R:426:3', 'test-read_sources.R:485:3', 'test-read_sources.R:496:3', 'test-read_sources.R:505:3', 'test-read_sources.R:511:3', 'test-read_xlsb.R:132:3', 'test-read_xlsb.R:154:3', 'test-read_xlsx_correct_sheet.R:3:3', 'test-remove_worksheets.R:71:3', 'test-save.R:469:3', 'test-styles_xml.R:3:3', 'test-styles_xml.R:39:3', 'test-styles_xml.R:67:3', 'test-styles_xml.R:94:3', 'test-styles_xml.R:119:3', 'test-styles_xml.R:145:3', 'test-utils.R:510:3', 'test-wb_functions.R:5:3', 'test-wb_functions.R:139:3', 'test-write.R:148:3', 'test-write.R:184:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-wb_styles.R:1056:3'): date and time formatting works ───────── Expected `got` to be identical to "01:45:30 PM". Differences: `actual`: "01:45:30 pm" `expected`: "01:45:30 PM" ── Failure ('test-wb_styles.R:1062:3'): date and time formatting works ───────── Expected `got` to be identical to "01:45:30 PM". Differences: `actual`: "01:45:30 pm" `expected`: "01:45:30 PM" ── Failure ('test-wb_styles.R:1188:3'): special formatting works ─────────────── Expected `got` to be identical to "08:15:01 P". Differences: `actual`: "08:15:01 p" `expected`: "08:15:01 P" ── Failure ('test-wb_styles.R:1267:3'): apply_numfmts works ──────────────────── Expected `got` to equal `exp`. Differences: actual vs expected daily_time - actual[1, ] 08:30:00 am + expected[1, ] 08:30:00 AM - actual[2, ] 09:45:00 am + expected[2, ] 09:45:00 AM actual[3, ] NA - actual[4, ] 11:15:00 am + expected[4, ] 11:15:00 AM - actual[5, ] 12:00:00 pm + expected[5, ] 12:00:00 PM actual$daily_time | expected$daily_time [1] "08:30:00 am" - "08:30:00 AM" [1] [2] "09:45:00 am" - "09:45:00 AM" [2] [3] NA | NA [3] [4] "11:15:00 am" - "11:15:00 AM" [4] [5] "12:00:00 pm" - "12:00:00 PM" [5] [ FAIL 4 | WARN 0 | SKIP 80 | PASS 2028 ] Error: ! Test failures. Execution halted