Running 'testthat.R' [37s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(J4R)
  > 
  > test_check("J4R")
  Parameters received:-firstcall; true; 
  Language set to: English
  Launching RGateway Server...
  ClassPath = -cp j4r.jar
  [C:\PROGRA~4\Java\JDK18~1.0_2\jre\bin\java, -cp, j4r.jar, j4r.lang.codetranslator.REnvironment]
  No parameters received.
  -- 1. Failure: Check the return value of checkIfClasspathContains (@testDynamicC
  checkIfClasspathContains(expectedJar) not equal to TRUE.
  target is NULL, current is logical
  
  -- 2. Failure: Check the return value of checkIfClasspathContains (@testDynamicC
  checkIfClasspathContains("repicea.jar") not equal to FALSE.
  target is NULL, current is logical
  
  -- 3. Failure: Check the return value of checkIfClasspathContains (@testDynamicC
  checkIfClasspathContains(expectedJar) not equal to TRUE.
  target is NULL, current is logical
  
  -- 4. Failure: Check the return value of checkIfClasspathContains (@testDynamicC
  checkIfClasspathContains("repicea.jar") not equal to TRUE.
  target is NULL, current is logical
  
  -- 5. Error: (unknown) (@testDynamicClasspath.R#37)  ---------------------------
  object 'j4rSocket' not found
  Backtrace:
   1. J4R::createJavaObject("repicea.math.Matrix", as.integer(3), as.integer(3))
   3. J4R:::.getMainSocket()
   4. base::get("j4rSocket", envir = cacheEnv)
  
  Parameters received:-firstcall; true; -ext; d:/Rcompile/CRANpkg/local/4.1/J4R.Rcheck/tests/testthat/javatests; 
  Language set to: English
  Launching RGateway Server...
  ClassPath = -cp j4r.jar;d:/Rcompile/CRANpkg/local/4.1/J4R.Rcheck/tests/testthat/javatests
  [C:\PROGRA~4\Java\JDK18~1.0_2\jre\bin\java, -cp, j4r.jar;d:/Rcompile/CRANpkg/local/4.1/J4R.Rcheck/tests/testthat/javatests, j4r.lang.codetranslator.REnvironment]
  No parameters received.
  -- 6. Error: (unknown) (@testJavaConnection.R#15)  -----------------------------
  object 'j4rSocket' not found
  Backtrace:
   1. J4R::callJavaMethod("J4RTestClass", "testFunction")
   3. J4R:::.getMainSocket()
   4. base::get("j4rSocket", envir = cacheEnv)
  
  Parameters received:-firstcall; true; -mem; 3000; 
  Language set to: English
  Launching RGateway Server...
  Memory = -Xmx3000m
  ClassPath = -cp j4r.jar
  [C:\PROGRA~4\Java\JDK18~1.0_2\jre\bin\java, -Xmx3000m, -cp, j4r.jar, j4r.lang.codetranslator.REnvironment]
  No parameters received.
  -- 7. Error: Increased memory (@testPerformances.R#59)  ------------------------
  object 'j4rSocket' not found
  Backtrace:
   1. testthat::expect_equal(...)
   4. J4R::getMemorySettings()
   5. J4R::callJavaMethod("java.lang.Runtime", "getRuntime")
   7. J4R:::.getMainSocket()
   8. base::get("j4rSocket", envir = cacheEnv)
  
  Parameters received:-firstcall; true; 
  Language set to: English
  Launching RGateway Server...
  ClassPath = -cp j4r.jar
  [C:\PROGRA~4\Java\JDK18~1.0_2\jre\bin\java, -cp, j4r.jar, j4r.lang.codetranslator.REnvironment]
  No parameters received.
  -- 8. Error: (unknown) (@testSimple.R#21)  -------------------------------------
  object 'j4rSocket' not found
  Backtrace:
   1. J4R::createJavaObject("java.util.ArrayList")
   3. J4R:::.getMainSocket()
   4. base::get("j4rSocket", envir = cacheEnv)
  
  == testthat results  ===========================================================
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 8 ]
  1. Failure: Check the return value of checkIfClasspathContains (@testDynamicClasspath.R#25) 
  2. Failure: Check the return value of checkIfClasspathContains (@testDynamicClasspath.R#26) 
  3. Failure: Check the return value of checkIfClasspathContains (@testDynamicClasspath.R#33) 
  4. Failure: Check the return value of checkIfClasspathContains (@testDynamicClasspath.R#34) 
  5. Error: (unknown) (@testDynamicClasspath.R#37) 
  6. Error: (unknown) (@testJavaConnection.R#15) 
  7. Error: Increased memory (@testPerformances.R#59) 
  8. Error: (unknown) (@testSimple.R#21) 
  
  Error: testthat unit tests failed
  Execution halted