Running 'testthat.R' [189s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(openxlsx2)
  > 
  > test_check("openxlsx2")
  Saving _problems/test-class-workbook-610.R
  [ FAIL 1 | WARN 0 | SKIP 79 | PASS 1803 ]
  
  ══ Skipped tests (79) ══════════════════════════════════════════════════════════
  • On CRAN (15): 'test-conditional_formatting.R:1101:3',
    'test-conditional_formatting.R:1129:3', 'test-date_time_conversion.R:66:3',
    'test-pugi_cpp.R:188:3', 'test-read_sources.R:3:3',
    'test-read_sources.R:29:3', 'test-read_sources.R:196:3',
    'test-read_sources.R:307:3', 'test-read_sources.R:505: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:930:3'
  • Skip on CRAN (64): 'test-class-comment.R:63:3',
    'test-class-workbook-wrappers.R:286: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:259:3', 'test-conditional_formatting.R:289:3',
    'test-conditional_formatting.R:449:3', 'test-formulas.R:3:3',
    'test-loading_workbook.R:4:3', 'test-loading_workbook.R:17:3',
    'test-loading_workbook.R:42:3', 'test-loading_workbook.R:60:3',
    'test-loading_workbook.R:150:3', 'test-loading_workbook.R:186:3',
    'test-loading_workbook.R:283:3', 'test-loading_workbook.R:305:3',
    'test-loading_workbook.R:331:3', 'test-loading_workbook.R:391:3',
    'test-loading_workbook.R:402:3', 'test-loading_workbook.R:583:3',
    'test-loading_workbook.R:607:3', 'test-loading_workbook_tables.R:4:3',
    'test-named_regions.R:62:3', 'test-named_regions.R:122: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:142:3',
    'test-read_sources.R:212:3', 'test-read_sources.R:229:3',
    'test-read_sources.R:248:3', 'test-read_sources.R:270:3',
    'test-read_sources.R:285:3', 'test-read_sources.R:329:3',
    'test-read_sources.R:360:3', 'test-read_sources.R:368:3',
    'test-read_sources.R:383:3', 'test-read_sources.R:390:3',
    'test-read_sources.R:415:3', 'test-read_sources.R:474:3',
    'test-read_sources.R:485:3', 'test-read_sources.R:493:3',
    'test-read_sources.R:499: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:69:3', 'test-save.R:309: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:492:3', 'test-wb_functions.R:5:3',
    'test-wb_functions.R:139:3', 'test-write.R:146:3', 'test-write.R:182:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-class-workbook.R:606:3'): add_drawing works ────────────────────
  Error in ``[.data.table`(dataset, , `:=`(c(".fake_id."), list(seq_len(.N))), by = c(x, group))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─mschart::ms_linechart(...) at test-class-workbook.R:606:3
   2.   └─mschart:::ms_chart(...)
   3.     └─mschart (local) excel_data_setup(out)
   4.       └─mschart:::dcast_data(data = x$data, x = x$x, y = x$y, group = x$group)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  
  [ FAIL 1 | WARN 0 | SKIP 79 | PASS 1803 ]
  Error:
  ! Test failures.
  Execution halted