Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

jengine

Java callback engineCast a Java object to another class


Description

.jengine obtains the current callback engine or starts it.

Usage

.jengine(start=FALSE, silent=FALSE)

Arguments

start

if set to TRUE then the callback engine is started if it is not yet active

silent

if set to TRUE then NULL is returned if there is no engine available. Otherwise an error is raised

Details

.jengine can be used to detect whether the engine was started or to start the engine.

Before any callbacks from Java into R can be performed, the Java callback engine must be initialized, loading Java/R Interface (JRI). If JRI was not started and start is set to TRUE then .jengine will load necessary classes and start it.

Note that JRI is an optional part of rJava and requires R shared library at the moment. By default rJava will continue with installation even if JRI cannot be built.

Value

Returns a Java object reference (jobjRef) to the current Java callback engine.

See Also

Examples

## Not run: 
.jengine(TRUE)

## End(Not run)

rJava

Low-Level R to Java Interface

v1.0-4
LGPL-2.1
Authors
Simon Urbanek <simon.urbanek@r-project.org>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.