Create 'Java' Objects and Execute 'Java' Methods


[Up] [Top]

Documentation for package ‘J4R’ version 1.0.8

Help Pages

addToClassPath Dynamically adds a path or a jar file to the classpath.
addUrlToClassPath Dynamically adds an url to the classpath.
as.float Cast the object into a Java float type
as.JavaArray Create a Java array from an R array
as.long Cast the object into a Java long type
bufferLength Length of the buffer when reading from the socket connection.
cacheEnv The cache environment of this package
callJavaGC Synchronize the Java environment with the R environment
callJavaMethod Call a Java method
checkIfClasspathContains Check if a Library has been loaded
connectToJava Connect to Java environment
createJavaObject Create Java objects
getAllValuesFromArray Returns all the elements of a Java array
getAllValuesFromListObject Returns all the elements of a Java instance of List
getArrayLength Return the length of an Array instance
getClassLoaderPaths Retrieve the paths of the current classloader
getClassLoaderURLs Retrieve the URLs of the current classloader
getJavaArchitecture Get Java architecture
getJavaField Get the value of a public field
getJavaVersion Get the current Java version
getListOfJavaReferences Provide a list of the Java references
getMemorySettings Returns the maximum, total and free memory in Mb
getNbConnections The number of connections to the server
getNbInstancesInInternalMap Return the number of instances stored in the internal map of the Java server
getValueFromArray Get a value from an array
interruptJava Interrupt the current task on the Java server
is.JavaArray Check if the java.object instance represents an Array
isConnectedToJava Checks if the Java server is running
isJavaArray Check if the java.object instance represents an Array
j4r.config.setDefaultJVMMemorySize Set a default memory size for the Java Virtual Machine
j4r.config.setVerbose Enabling/disabling Verbose
killJava Force the JVM to shut down
length.java.list Override the default length function
length.java.object Override the default length function
maxVectorLength Maximum length of the vector in the parameters.
mclapply.j4r Using multithreading with J4R
print.java.list Print a java.list object
print.java.object Print a java.object instance
setJavaField Set the value of a public field
setJavaPath Set the path to Java
settingEnv The settings environment for this package
setValueInArray Set a value in an array
shutdownJava Shut down Java