* using log directory ‘/Users/ripley/R/packages/tests-devel/jdx.Rcheck’ * using R Under development (unstable) (2021-10-05 r81008) * using platform: aarch64-apple-darwin20.6.0 (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘jdx/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘jdx’ version ‘0.1.4’ * package encoding: UTF-8 * 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 executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘jdx’ can be installed ... OK * 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... 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 ... ERROR Running examples in ‘jdx-Ex.R’ failed The error most likely occurred in: > ### Name: convertToRlowLevel > ### Title: Low-level Interface for jdx > ### Aliases: arrayOrderToString convertToRlowLevel createJavaToRobject > ### jdxConstants processCompositeDataCode > ### Keywords: interface > > ### ** Examples > > library("jdx") > > # Create org.fgilbert.jdx.JavaToR object used to convert > # java objects to R objects. Create one of these objects > # per thread for thread-safe execution. > # > # It is also possible to create and use the JavaToR > # object in Java and return a reference to R via rJava. > j2r <- createJavaToRobject() > > # Pass the Java object to be converted to the initialize > # method of the JavaToR object. Note that the Java object > # must be cast as java.lang.Object. The initialize method > # returns an integer value known as a composite data code > # that is used to derive the R structure. > composite.data.code <- rJava::.jcall( + j2r + , "I" + , "initialize" + , rJava::.jcast(convertToJava(iris)) + ) Error in rJava::.jcall(j2r, "I", "initialize", rJava::.jcast(convertToJava(iris))) : java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ScriptObjectMirror Calls: -> .jcheck Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(jdx) > > test_check("jdx") ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error (test-01-low-level.R:49:5): convertToRlowLevel ──────────────────────── Error in `rJava::.jcall(j2r, "I", "initialize", rJava::.jcast(o))`: java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ScriptObjectMirror [ FAIL 1 | WARN 0 | SKIP 0 | PASS 90 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... WARNING Error(s) in re-building vignettes: --- re-building ‘Introduction.Rmd’ using rmarkdown Quitting from lines 385-390 (Introduction.Rmd) Error: processing vignette 'Introduction.Rmd' failed with diagnostics: java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ScriptObjectMirror --- failed re-building ‘Introduction.Rmd’ SUMMARY: processing the following file failed: ‘Introduction.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 2 ERRORs, 1 WARNING See ‘/Users/ripley/R/packages/tests-devel/jdx.Rcheck/00check.log’ for details. 16.20 real 12.54 user 2.88 sys