Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


J4R (version 1.0.7)

connectToJava: Connect to Java environment

Description

This function connects the R environment to a gateway server that runs in Java.

Usage

connectToJava(
  port = 18011,
  extensionPath = NULL,
  memorySize = NULL,
  debug = FALSE
)

Arguments

port

the local port (the port is set to 18011 by default)

extensionPath

the path to jar files that can be loaded by the system classloader

memorySize

the memory size of the Java Virtual Machine in Mb (if not specified, the JVM runs with the default memory size)

debug

for debugging only (should be left as is)

Value

a logical TRUE if the function managed to get connected to the server or if it was already connected or FALSE if the connection has failed