Running ‘testthat.R’ [90s/129s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(openxlsx2)
  > 
  > test_check("openxlsx2")
  Saving _problems/test-read_sources-479.R
  [ FAIL 1 | WARN 2 | SKIP 85 | PASS 2089 ]
  
  ══ Skipped tests (85) ══════════════════════════════════════════════════════════
  • !file.exists("C:\\Program Files\\7-zip\\7z.exe") is TRUE (1):
    'test-loading_workbook.R:610:3'
  • (.Platform$OS.type == "windows" && Sys.which("tar") == "") ||
    (.Platform$OS.type == "unix" && Sys.which("bsdtar") == "") is TRUE (1):
    'test-loading_workbook.R:589:3'
  • On CRAN (18): 'test-conditional_formatting.R:1390:3',
    'test-conditional_formatting.R:1420:3', 'test-date_time_conversion.R:66:3',
    'test-loading_workbook.R:648:3', 'test-pugi_cpp.R:208:3',
    'test-read_sources.R:3:3', 'test-read_sources.R:29:3',
    'test-read_sources.R:203:3', 'test-read_sources.R:322:3',
    'test-read_sources.R:527:3', 'test-read_sources.R:580:3',
    'test-read_xlsb.R:4:3', 'test-read_xlsb.R:26:3', 'test-read_xlsb.R:66:3',
    'test-read_xlsb.R:165:3', 'test-read_xlsb.R:179:3', 'test-read_xlsb.R:205:3',
    'test-write.R:944:3'
  • Skip on CRAN (65): 'test-class-comment.R:63:3',
    'test-class-workbook-wrappers.R:290:3', 'test-class-workbook.R:377:3',
    'test-class-workbook.R:896: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:41:3',
    'test-loading_workbook.R:67:3', 'test-loading_workbook.R:85:3',
    'test-loading_workbook.R:177:3', 'test-loading_workbook.R:214:3',
    'test-loading_workbook.R:315:3', 'test-loading_workbook.R:337:3',
    'test-loading_workbook.R:368:3', 'test-loading_workbook.R:428:3',
    'test-loading_workbook.R:439:3', 'test-loading_workbook.R:682:3',
    'test-loading_workbook.R:708: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:98:3', 'test-read_sources.R:149:3',
    'test-read_sources.R:220:3', 'test-read_sources.R:238:3',
    'test-read_sources.R:262:3', 'test-read_sources.R:284:3',
    'test-read_sources.R:300:3', 'test-read_sources.R:344:3',
    'test-read_sources.R:375:3', 'test-read_sources.R:385:3',
    'test-read_sources.R:402:3', 'test-read_sources.R:411:3',
    'test-read_sources.R:436:3', 'test-read_sources.R:495:3',
    'test-read_sources.R:506:3', 'test-read_sources.R:515:3',
    'test-read_sources.R:521:3', 'test-read_xlsb.R:126:3',
    'test-read_xlsb.R:149: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:92:3', 'test-styles_xml.R:130:3',
    'test-styles_xml.R:155:3', 'test-styles_xml.R:181:3', 'test-utils.R:510:3',
    'test-wb_functions.R:5:3', 'test-wb_functions.R:152:3', 'test-write.R:148:3',
    'test-write.R:184:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-read_sources.R:479: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:479: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 2 | SKIP 85 | PASS 2089 ]
  Error:
  ! Test failures.
  Execution halted