Running ‘testthat.R’ [85s/101s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(openxlsx2)
  > 
  > test_check("openxlsx2")
  Saving _problems/test-form_control-42.R
  Saving _problems/test-freeze_pane-91.R
  [ FAIL 3 | WARN 12 | SKIP 91 | PASS 2081 ]
  
  ══ Skipped tests (91) ══════════════════════════════════════════════════════════
  • !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:67: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:946:3'
  • Skip on CRAN (64): 'test-class-comment.R:63:3',
    'test-class-workbook-wrappers.R:290:3', 'test-class-workbook.R:377:3',
    'test-class-workbook.R:965:3', 'test-cloneWorksheet.R:8:3',
    'test-cloneWorksheet.R:22:3', 'test-cloneWorksheet.R:113: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:470: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:149:3', 'test-write.R:185:3'
  • {mschart} is not installed (6): 'test-class-workbook-wrappers.R:860:3',
    'test-class-workbook.R:574:3', 'test-class-workbook.R:687:3',
    'test-class-workbook.R:803:3', 'test-cloneWorksheet.R:221:3',
    'test-read_xlsx_random_seed.R:17:3'
  • {rvg} is not installed (1): 'test-class-workbook.R:517:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-form_control.R:42:3'): add_form_control works ──────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: could not save file
  Backtrace:
      ▆
   1. └─wb$save(temp) at test-form_control.R:42:3
   2.   └─openxlsx2:::write_file(...)
   3.     └─openxlsx2:::write_xmlPtr(xml_content, fl)
  ── Error ('test-freeze_pane.R:91:3'): Freeze Panes ─────────────────────────────
  <Rcpp::exception/C++Error/error/condition>
  Error: could not save file
  Backtrace:
      ▆
   1. └─wb$save(temp) at test-freeze_pane.R:91:3
   2.   └─openxlsx2:::write_file(...)
   3.     └─openxlsx2:::write_xmlPtr(xml_content, fl)
  ── Error ('test-write.R:1547:3'): writing without pugixml works ────────────────
  Error in `utils::unzip(file, exdir = xmlDir)`: cannot open file '/tmp/RtmpWjFpD5/_openxlsx_wb_load_file592756046ca09/xl/_rels/workbook.xml.rels': No space left on device
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(wb <- wb_load(temp)) at test-write.R:1547:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. └─openxlsx2::wb_load(temp)
   10.   ├─base::withCallingHandlers(...)
   11.   └─utils::unzip(file, exdir = xmlDir)
  
  [ FAIL 3 | WARN 12 | SKIP 91 | PASS 2081 ]
  Error:
  ! Test failures.
  Execution halted