To embed the TIBCO Enterprise Runtime for R engine within a Java application
The terrJava package supports starting a TIBCO Enterprise Runtime for R engine from Java, and then sending expressions for TIBCO Enterprise Runtime for R to evaluate.
Setting this up is more complicated than starting Java from TIBCO Enterprise Runtime for R by executing library(terrJava), but it has proven useful for Java applications that need to call TIBCO Enterprise Runtime for R computations.
Note: The
TIBCO Enterprise Runtime for R engine is single-threaded, so it is not possible to run more than one
TIBCO Enterprise Runtime for R engine at the same time within a given operating system process. If your Java application wants to create multiple
TIBCO Enterprise Runtime for R engines, the application must create the engines in multiple operating system processes. This can be done by creating multiple Java processes with embedded
TIBCO Enterprise Runtime for R engines, and managing communication between them. Alternatively, you can use the
TerrJavaRemote class to spawn and control multiple processes with embedded
TIBCO Enterprise Runtime for R engines, as described in
Setting up environment variables for a Java application to use TIBCO Enterprise Runtime for R.
Copyright © TIBCO Software Inc. All Rights Reserved.