Running 'testthat.R' [32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(xlsx)
  > 
  > test_check("xlsx")
  WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by org.apache.poi.util.DocumentHelper (file:/D:/RCompile/CRANpkg/lib/4.6/xlsxjars/java/poi-ooxml-3.13-20150929.jar) to method com.sun.org.apache.xerces.internal.util.SecurityManager.setEntityExpansionLimit(int)
  WARNING: Please consider reporting this to the maintainers of org.apache.poi.util.DocumentHelper
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  Saving _problems/test-Workbook-21.R
  Workbook has no sheets!
  Saving _problems/test-write.xlsx-45.R
  [ FAIL 2 | WARN 0 | SKIP 13 | PASS 130 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • Not presently working (1): 'test-CellStyle.R:98:3'
  • Not working on mac R 3.3.3 (1): 'test-read.xlsx.R:59:3'
  • broken at present (1): 'test-write.xlsx.R:5:3'
  • do not worry at present (1): 'test-misc.R:16:3'
  • does not presently work (1): 'test-read.xlsx.R:84:3'
  • empty test (2): 'test-Workbook.R:7:1',
  • need to add rowIndex argument (1): 'test-read.xlsx.R:113:3'
  • no longer checking version (1): 'test-utils.R:10:3'
  • not currently supported (1): 'test-chart.R:5:3'
  • not presently addressed (1): 'test-cellBlock.R:66:3'
  • not presently working (2): 'test-addDataFrame.R:52:3', 'test-read.xlsx.R:5:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-Workbook.R:21:3'): password protect workbook ───────────────────
  <OpenXML4JRuntimeException/RuntimeException/Exception/Throwable/Object/error/condition>
  Error in `.jcheck(silent = FALSE)`: org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : class org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to class java.util.zip.ZipFile$ZipFileInputStream (org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream is in unnamed module of loader RJavaClassLoader @dcf3e99; java.util.zip.ZipFile$ZipFileInputStream is in module java.base of loader 'bootstrap')
  ── Error ('test-write.xlsx.R:45:3'): write password protected workbook succeeds ──
  <OpenXML4JRuntimeException/RuntimeException/Exception/Throwable/Object/error/condition>
  Error in `.jcheck(silent = FALSE)`: org.apache.poi.openxml4j.exceptions.OpenXML4JRuntimeException: Fail to save: an error occurs while saving the package : class org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream cannot be cast to class java.util.zip.ZipFile$ZipFileInputStream (org.apache.poi.openxml4j.util.ZipSecureFile$ThresholdInputStream is in unnamed module of loader RJavaClassLoader @dcf3e99; java.util.zip.ZipFile$ZipFileInputStream is in module java.base of loader 'bootstrap')
  
  [ FAIL 2 | WARN 0 | SKIP 13 | PASS 130 ]
  Error:
  ! Test failures.
  Execution halted