Running 'testthat.R' [28s/31s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(huxtable)
  > 
  > 
  > we_are_in_R_CMD_check <- TRUE
  > test_check("huxtable")
  -- 1. Failure: Data written in appropriate format (@test-openxlsx.R#101)  ------
  `openxlsx::saveWorkbook(wb, file = "test-xlsx.xlsx", overwrite = TRUE)` threw an error.
  Message: WEIRD RETURN VALUE: (nil)
  Class:   simpleError/error/condition
  
  -- 2. Error: Data written in appropriate format (@test-openxlsx.R#103)  --------
  File does not exist.
  1: openxlsx::read.xlsx("test-xlsx.xlsx") at testthat/test-openxlsx.R:103
  2: read.xlsx.default("test-xlsx.xlsx")
  3: stop("File does not exist.")
  
  -- 3. Failure: Chinese characters are not repeated (@test-print.R#193)  --------
  `s` does not match "^[[:space:]]*<U+4E2D><U+6587>[[:space:]]*(\\n.*)?$".
  Actual value: "  <U\+4            \\n\\nColumn names: "<U\+4E2D><U\+6587>"\\n"
  
  -- 4. Error: Quick output functions create files (@test-quick-output.R#29)  ----
  WEIRD RETURN VALUE: (nil)
  1: expect_silent(quick_xlsx(m, dfr, ht, file = tf, open = FALSE)) at testthat/test-quick-output.R:29
  2: quasi_capture(enquo(object), NULL, evaluate_promise)
  3: .capture(act$val <- eval_bare(get_expr(.quo), get_env(.quo)), ...)
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(.quo), get_env(.quo))
  9: quick_xlsx(m, dfr, ht, file = tf, open = FALSE)
  10: openxlsx::saveWorkbook(wb, file = file, overwrite = TRUE)
  11: wb$saveWorkbook()
  12: write_file(head = "<Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">", 
         body = "<Relationship Id=\"rId1\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument\" Target=\"xl/workbook.xml\"/>\n                    <Relationship Id=\"rId2\" Type=\"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties\" Target=\"docProps/core.xml\"/>\n                    <Relationship Id=\"rId3\" Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties\" Target=\"docProps/app.xml\"/>", 
         tail = "</Relationships>", fl = file.path(relsDir, ".rels"))
  
  == testthat results  ===========================================================
  [ OK: 881 | SKIPPED: 64 | WARNINGS: 0 | FAILED: 4 ]
  1. Failure: Data written in appropriate format (@test-openxlsx.R#101) 
  2. Error: Data written in appropriate format (@test-openxlsx.R#103) 
  3. Failure: Chinese characters are not repeated (@test-print.R#193) 
  4. Error: Quick output functions create files (@test-quick-output.R#29) 
  
  Error: testthat unit tests failed
  Execution halted