- using R version 4.4.3 (2025-02-28 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 13.3.0
GNU Fortran (GCC) 13.3.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'xlsx/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'xlsx' version '0.6.5'
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'xlsx' can be installed ... OK
See the install log for details.
- checking installed package size ... OK
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s] OK
- checking whether the package can be unloaded cleanly ... [2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s] OK
- checking whether the namespace can be unloaded cleanly ... [2s] OK
- checking loading without being on the library search path ... [2s] OK
- checking whether startup messages can be suppressed ... [2s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [6s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [18s] ERROR
Running 'testthat.R' [17s]
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.4/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
Workbook has no sheets!
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 130 ]
══ Skipped tests (12) ══════════════════════════════════════════════════════════
• 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 (1): '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 `.jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = 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 @156643d4; 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 `.jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
.jcast(if (inherits(o, "jobjRef") || inherits(o, "jarrayRef")) o else cl,
"java/lang/Object"), .jnew("java/lang/String", method),
j_p, j_pc, use.true.class = TRUE, evalString = simplify,
evalArray = 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 @156643d4; java.util.zip.ZipFile$ZipFileInputStream is in module java.base of loader 'bootstrap')
[ FAIL 2 | WARN 0 | SKIP 12 | PASS 130 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s] OK
- checking PDF version of manual ... [18s] OK
- checking HTML version of manual ... [6s] OK
- DONE
Status: 1 ERROR