Running ‘testthat.R’ [5s/38s]
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
  OpenInternalLoader = --add-opens java.base/jdk.internal.loader=ALL-UNNAMED
  [java, -cp, j4r.jar, --add-opens, java.base/jdk.internal.loader=ALL-UNNAMED, j4r.lang.codetranslator.REnvironment]
  No parameters received.
  Server starting
  Parameters received:-firstcall; true; -ext; /data/gannet/ripley/R/packages/tests-devel/J4R.Rcheck/tests/testthat/javatests; 
  Language set to: English
  Launching RGateway Server...
  ClassPath = -cp j4r.jar:/data/gannet/ripley/R/packages/tests-devel/J4R.Rcheck/tests/testthat/javatests
  OpenInternalLoader = --add-opens java.base/jdk.internal.loader=ALL-UNNAMED
  [java, -cp, j4r.jar:/data/gannet/ripley/R/packages/tests-devel/J4R.Rcheck/tests/testthat/javatests, --add-opens, java.base/jdk.internal.loader=ALL-UNNAMED, j4r.lang.codetranslator.REnvironment]
  ── 1. Error: (unknown) (@testJavaConnection.R#15)  ─────────────────────────────
  java.lang.NoSuchMethodException: java.lang.String.testFunction()
  Backtrace:
   1. J4R::callJavaMethod("J4RTestClass", "testFunction")
   2. J4R:::.processCallback(callback)
   3. J4R:::.checkForExceptionInCallback(callback)
  
  No parameters received.
  java.net.BindException: Address already in use (Bind failed)
  	at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
  	at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:436)
  	at java.base/java.net.ServerSocket.bind(ServerSocket.java:395)
  	at java.base/java.net.ServerSocket.<init>(ServerSocket.java:257)
  	at java.base/java.net.ServerSocket.<init>(ServerSocket.java:149)
  	at j4r.net.server.AbstractServer.<init>(AbstractServer.java:119)
  	at j4r.net.server.JavaLocalGatewayServer.<init>(JavaLocalGatewayServer.java:222)
  	at j4r.net.server.JavaLocalGatewayServer.<init>(JavaLocalGatewayServer.java:199)
  	at j4r.lang.codetranslator.REnvironment.main(REnvironment.java:755)
  ── 2. Failure: Time to create one additional object (@testPerformances.R#42)  ──
  slope < 1e-04 not equal to TRUE.
  1 element mismatch
  
  Parameters received:-firstcall; true; -mem; 3000; 
  socket error: Connection refused
  ── 3. Error: (unknown) (@testPerformances.R#47)  ───────────────────────────────
  socket not established
  Backtrace:
   1. J4R::connectToJava(memorySize = 3000)
   3. utils::make.socket("localhost", port)
  
  Parameters received:-firstcall; true; 
  Language set to: English
  Launching RGateway Server...
  OpenInternalLoader = --add-opens java.base/jdk.internal.loader=ALL-UNNAMED
  ClassPath = -cp j4r.jar
  Memory = -Xmx3000m
  [java, --add-opens, java.base/jdk.internal.loader=ALL-UNNAMED, -cp, j4r.jar, -Xmx3000m, j4r.lang.codetranslator.REnvironment]
  No parameters received.
  socket error: Connection refused
  ── 4. Error: (unknown) (@testSimple.R#14)  ─────────────────────────────────────
  socket not established
  Backtrace:
   1. J4R::connectToJava()
   3. utils::make.socket("localhost", port)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 6 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 4 ]
  1. Error: (unknown) (@testJavaConnection.R#15) 
  2. Failure: Time to create one additional object (@testPerformances.R#42) 
  3. Error: (unknown) (@testPerformances.R#47) 
  4. Error: (unknown) (@testSimple.R#14) 
  
  Error: testthat unit tests failed
  Execution halted