Running 'testthat.R' [91s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(openxlsx2)
  > 
  > test_check("openxlsx2")
  Starting 2 test processes
  [ FAIL 1 | WARN 1 | SKIP 73 | PASS 1679 ]
  
  ══ Skipped tests (73) ══════════════════════════════════════════════════════════
  • On CRAN (12): 'test-date_time_conversion.R:64:3', 'test-pugi_cpp.R:191:3',
    'test-read_sources.R:3:3', 'test-read_sources.R:29:3',
    'test-read_sources.R:197:3', 'test-read_sources.R:308: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 (61): 'test-class-comment.R:86:3',
    'test-class-workbook.R:377:3', 'test-class-workbook.R:881: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:260:3', 'test-conditional_formatting.R:403: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:61:3', 'test-loading_workbook.R:151:3',
    'test-loading_workbook.R:187:3', 'test-loading_workbook.R:273:3',
    'test-loading_workbook.R:295:3', 'test-loading_workbook.R:321:3',
    'test-loading_workbook.R:381:3', 'test-loading_workbook.R:392:3',
    'test-loading_workbook.R:507: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:213:3', 'test-read_sources.R:230:3',
    'test-read_sources.R:249:3', 'test-read_sources.R:271:3',
    'test-read_sources.R:286:3', 'test-read_sources.R:330:3',
    'test-read_sources.R:361:3', 'test-read_sources.R:369:3',
    'test-read_sources.R:385:3', 'test-read_sources.R:392:3',
    'test-read_sources.R:417:3', 'test-read_sources.R:476:3',
    'test-read_sources.R:487: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:310: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-class-workbook-wrappers.R:279:3',
    'test-write.R:146:3', 'test-write.R:182:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-read_sources.R:460:3'): file extension handling works ──────────
  Error in `download.file(url = xlsxFile, destfile = tmpFile, cacheOK = FALSE, 
      mode = "wb", quiet = TRUE)`: cannot open URL 'https://github.com/JanMarvin/msoc/raw/refs/heads/main/inst/extdata/Untitled1.docx'
  Backtrace:
      ▆
   1. ├─testthat::expect_error(wb_load(docx_path), "File does not appear to be xlsx, xlsm or xlsb") at test-read_sources.R:460:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─openxlsx2::wb_load(docx_path)
   8.   └─openxlsx2:::getFile(file)
   9.     └─utils::download.file(...)
  
  [ FAIL 1 | WARN 1 | SKIP 73 | PASS 1679 ]
  Error: Test failures
  Execution halted