Running ‘testthat.R’ [8s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library(testthat)
  > library(knitxl)
  Loading required package: knitr
  > 
  > test_check("knitxl")
  Saving _problems/test-knitxl-15.R
  [ FAIL 2 | WARN 4 | SKIP 22 | PASS 90 ]
  
  ══ Skipped tests (22) ══════════════════════════════════════════════════════════
  • On CRAN (22): 'test-knitxl.R:2:1', 'test-knitxl.R:18:1',
    'test-knitxl.R:31:1', 'test-knitxl.R:50:1', 'test-knitxl.R:64:1',
    'test-knitxl.R:81:1', 'test-knitxl.R:93:1', 'test-knitxl.R:106:1',
    'test-knitxl.R:120:1', 'test-knitxl.R:131:1', 'test-knitxl.R:145:1',
    'test-knitxl.R:158:1', 'test-knitxl.R:168:1', 'test-knitxl.R:177:1',
    'test-knitxl.R:195:1', 'test-knitxl.R:207:1', 'test-knitxl.R:219:1',
    'test-knitxl.R:228:1', 'test-knitxl.R:242:1', 'test-knitxl.R:256:1',
    'test-knitxl.R:273:1', 'test-knitxl.R:297:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-knitxl.R:15:3'): errors, warnings and messages rendered correctly ──
  Error in `file(file.path(xlthemeDir, "theme1.xml"), open = "wb")`: cannot open the connection
  Backtrace:
      ▆
   1. └─knitxl:::expect_snapshot_xl("conditions", content) at test-knitxl.R:15:3
   2.   └─knitxl:::save_xl(input_text)
   3.     ├─base::suppressMessages(...)
   4.     │ └─base::withCallingHandlers(...)
   5.     └─knitxl::knitxl(text = input_text, output = path, quiet = TRUE)
   6.       └─xl_obj$write()
   7.         └─openxlsx::saveWorkbook(self$wb, self$fn, overwrite = TRUE, returnValue = TRUE)
   8.           └─wb$saveWorkbook()
   9.             └─base::file(file.path(xlthemeDir, "theme1.xml"), open = "wb")
  ── Error ('test-knitxl.R:47:3'): renders vectors ───────────────────────────────
  Error in `zip_internal(zipfile, files, recurse, compression_level, append = FALSE, root = root, keep_path = (mode == "mirror"), include_directories = include_directories)`: zip error: Cannot open zip file `file234b8364cafb6d.xlsx` for writing in file zip.c:350
  Backtrace:
       ▆
    1. └─knitxl:::expect_snapshot_xl("vector", content) at test-knitxl.R:47:3
    2.   └─knitxl:::save_xl(input_text)
    3.     ├─base::suppressMessages(...)
    4.     │ └─base::withCallingHandlers(...)
    5.     └─knitxl::knitxl(text = input_text, output = path, quiet = TRUE)
    6.       └─xl_obj$write()
    7.         └─openxlsx::saveWorkbook(self$wb, self$fn, overwrite = TRUE, returnValue = TRUE)
    8.           └─wb$saveWorkbook()
    9.             └─zip::zipr(...)
   10.               └─zip:::zip_internal(...)
  
  [ FAIL 2 | WARN 4 | SKIP 22 | PASS 90 ]
  Error:
  ! Test failures.
  Execution halted