Package: rJava 1.0-11

Simon Urbanek

rJava: Low-Level R to Java Interface

Low-level interface to Java VM very much like .C/.Call and friends. Allows creation of objects, calling methods and accessing fields.

Authors:Simon Urbanek <[email protected]>

rJava_1.0-11.tar.gz
rJava_1.0-11.tar.gz(r-4.5-noble)rJava_1.0-11.tar.gz(r-4.4-noble)
rJava.pdf |rJava.html
rJava/json (API)
NEWS

# Install 'rJava' in R:
install.packages('rJava', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/s-u/rjava/issues

Uses libs:
  • openjdk– OpenJDK Java runtime, using Hotspot JIT

10.44 score 4 stars 243 packages 2.7k scripts 171k downloads 28 mentions 83 exports 0 dependencies

Last updated 11 months agofrom:bbd4c15859. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKNov 24 2024
R-4.5-linux-x86_64NOTENov 24 2024

Exports:.jaddClassPath.jaddLibrary.jarray.jbyte.jcache.jcall.jcast.jcastToArray.jchar.jcheck.jclass.jclass.boolean.jclass.double.jclass.float.jclass.int.jclass.void.jclassClass.jclassLoader.jclassObject.jclassPath.jclassRef.jclassString.jclear.jcompare.jconstructors.jengine.jequals.jevalArray.jfield.jfield<-.jfields.jfindClass.jfirst.jfloat.jgc.jgetEx.jidenticalRef.jinherits.jinit.jinit.merge.error.jinstanceof.jlong.jmemprof.jmergeClassPath.jmethods.jmkref.jnew.jniInitialized.jnull.joptions.jpackage.jproperty.jrcall.jrmLibrary.jserialize.jsetJConvertor.jsetRConvertor.jshort.jsimplify.jstrVal.jthrow.junserialize.jvmState.jzeroRef.r2j.rJava.base.path%instanceof%anyDuplicatedcloneduplicatedheadis.jnullJjavaImportnewrevshowsortstrtailtoJavauniquewith.jobjRef

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Invoke Java Garbage Collection.jgc
Is a java object an instance of a given java class%instanceof% .jinstanceof
Converts java objects or arrays to R listsas.list.jarrayRef as.list.jobjRef as.list.jrectRef
Object clonerclone clone,jarrayRef-method clone,jobjRef-method clone,jrectRef-method
Exception handling$.Throwable $<-.Throwable Exceptions
High level API for accessing JavaJ
Java array handling functions.jarray .jevalArray
Class "jarrayRef" Reference to an array Java objectanyDuplicated,jarrayRef-method duplicated,jarrayRef-method head,jarrayRef-method jarrayRef-class length,jarrayRef-method max,jarrayRef-method min,jarrayRef-method range,jarrayRef-method rev,jarrayRef-method sort,jarrayRef-method str,jarrayRef-method tail,jarrayRef-method unique,jarrayRef-method [,jarrayRef-method [[,jarrayRef-method [[<-,jarrayRef-method
java tools used internally in rJavajava-tools
Field/method operator for Java objects$,jclassName-method $,jobjRef-method $<-,jclassName-method $<-,jobjRef-method .DollarNames.jarrayRef .DollarNames.jclassName .DollarNames.jobjRef .DollarNames.jrectRef names,jarrayRef-method names,jclassName-method names,jobjRef-method names,jrectRef-method
Attach mechanism for java packagesjavaImport
Call a Java method.jcall
Cast a Java object to another class.jcast
Ensures that a given object is an array reference.jcastToArray
Java exception handling.jcheck .jclear .jgetEx .jthrow
Class "jclassName" - a representation of a Java class nameas.character,jclassName-method jclassName-class
Java callback engineCast a Java object to another class.jengine
Comparing Java References!=,ANY,jobjRef-method !=,jobjRef,ANY-method !=,jobjRef,jobjRef-method .jcompare .jequals <,ANY,jobjRef-method <,jobjRef,ANY-method <,jobjRef,jobjRef-method <=,ANY,jobjRef-method <=,jobjRef,ANY-method <=,jobjRef,jobjRef-method ==,ANY,jobjRef-method ==,jobjRef,ANY-method ==,jobjRef,jobjRef-method >,ANY,jobjRef-method >,jobjRef,ANY-method >,jobjRef,jobjRef-method >=,ANY,jobjRef-method >=,jobjRef,ANY-method >=,jobjRef,jobjRef-method
Obtains the value of a field.jfield .jfield<-
Wrap numeric vector as flat Java parameter.jbyte .jchar .jfloat .jlong .jshort jbyte jchar jfloat jlong jshort
Classes "jfloat", "jlong", "jbyte" and "jchar" specify Java native types that are not native in Rjbyte-class jchar-class jfloat-class jlong-class
Initialize Java VM.jinit .jvmState
rJava memory profiler.jmemprof
Create a Java object.jnew
Java null object reference.jnull is.jnull
Class "jobjRef" - Reference to a Java objectjobjRef-class
Initialize an R package containing Java code.jpackage
Rectangular java arraysanyDuplicated,jrectRef-method dim,jrectRef-method dim<-,jrectRef-method duplicated,jrectRef-method jrectRef-class length,jrectRef-method max,jrectRef-method min,jrectRef-method range,jrectRef-method rev,jrectRef-method sort,jrectRef-method str,jrectRef-method unique,jrectRef-method [,jrectRef-method
Simple helper functions for Java reflection.jconstructors .jfields .jmethods
Java object serialization.jcache .jserialize .junserialize
Converts Java object to a simple scalar if possible.jsimplify
Java Class Loader.jaddClassPath .jclassLoader .jclassPath
Create a new Java objectnew,jclassName-method
Creates java arrays by cloningrep,jarrayRef-method rep,jobjRef-method rep,jrectRef-method
Show a Java Object Referenceshow,jarrayRef-method show,jclassName-method show,jobjRef-method str,jobjRef-method
Convert R objects to REXP references in JavatoJava
with and within methods for Java objects and class nameswith.jarrayRef with.jclassName with.jobjRef within.jarrayRef within.jclassName within.jobjRef