Unknown

Dataset Information

0

Executing native Java code in R: an approach based on a local server.


ABSTRACT: The R language is widely used for data analysis. However, it does not allow for complex object-oriented implementation and it tends to be slower than other languages such as Java, C and C++. Consequently, it can be more computationally efficient to run native Java code in R. To do this, there exist at least two approaches. One is based on the Java Native Interface (JNI) and it has been successfully implemented in the rJava package. An alternative approach consists of running a local server in Java and linking it to an R environment through a socket connection. This alternative approach has been implemented in an R package called J4R. This article shows how this approach makes it possible to simplify the calls to Java methods and to integrate the R vectorization. The downside is a loss of performance. However, if the vectorization is used in conjunction with multithreading, this loss of performance can be compensated for.

SUBMITTER: Fortin M 

PROVIDER: S-EPMC7924457 | biostudies-literature |

REPOSITORIES: biostudies-literature

Similar Datasets

| S-EPMC3441562 | biostudies-literature
| S-EPMC3344831 | biostudies-literature
| S-EPMC6811980 | biostudies-literature
| S-EPMC10023820 | biostudies-literature
| S-EPMC8131987 | biostudies-literature
| S-EPMC8785428 | biostudies-literature
| S-EPMC2896160 | biostudies-literature
| S-EPMC6163108 | biostudies-literature
| S-EPMC7811546 | biostudies-literature
| S-EPMC7078617 | biostudies-literature