Questions tagged [rjava]

rJava is an interface between R and Java.

rJava is an R package providing interfaces between R and Java. As a package rJava allows R code to instantiate a Java VM, create Java objects and call Java methods. It also includes JRI (Java/R Interface) which conversely embeds R into a Java application.

613 questions
9
votes
3 answers

rJava on MacOS Sierra 10.12.15: unsupported option fopenmp

I'm trying to install rJava on MacOS Sierra. Have to tried the tips and guides elsewhere for other other version MacOS such as https://github.com/snowflakedb/dplyr-snowflakedb/wiki/Configuring-R-rJava-RJDBC-on-Mac-OS-X and Install xlsx and rJava on…
hnguyen123
  • 91
  • 1
  • 4
9
votes
1 answer

Error in ls(envir = envir, all.names = private) : invalid 'envir' argument in R

I met with this error when I used a package in R for loading data, in this package, pakcage rJava was used. Every time I run a function, the error is Error in ls(envir = envir, all.names = private) : invalid 'envir' argument This package has…
163
  • 205
  • 1
  • 12
8
votes
5 answers

Error: package or namespace load failed for XLConnect

I'm installing XLConnect library in R studio but, unable to do so. I know that this package has java dependency and my R software and java both are 64 bit. Also, both have configured correctly. I have also installed rJava package before installing…
Rishabh
  • 101
  • 1
  • 4
8
votes
2 answers

R: How to set up JDK to work with R (related: rJava, RStudio, xslx)

I am new to both programming and R, however, I am trying to install the 'xlsx'-package (and also XLConnect) in order to manipulate Excel-files via R. I am running RStudio version 1.0.153, R version 3.4.2 on a Mac OSX 10.12.6. First, I tried…
ivrs1
  • 81
  • 1
  • 2
8
votes
2 answers

R, loading rJava error

I'm running R (version 3.4.0) on macOS sierra (10.12.5) and I'm trying to use the xlsx library which requires the use of the rJava library. When I try to load rJava using library(rJava) in the R console (no difference if in RStudio or in the…
MrMax
  • 393
  • 1
  • 2
  • 10
8
votes
2 answers

Error Installing rJava | Makefile.all:38: recipe for target 'libjri.so' failed

I'm having problems to install rJava package in MRO 3.3.1, Platform: x86_64-pc-linux-gnu (Ubuntu 16.04LTS 64-bit) (error messages below). Following several other reported issues, I installed java-8-openjdk-*, java-8-oracle, liblzma-dev and others.…
Jecogeo
  • 339
  • 1
  • 4
  • 10
8
votes
1 answer

Include jar file when creating an R package

I created a skeleton R package: lib jarFileHere.jar R r_code_file.R The r_code_file.R tries to references a class file in jarFileHere.jar: library("rJava") library("rjson") .onLoad <- function(libname, pkgname) { .jpackage(pkgname,…
tommy chheng
  • 9,108
  • 9
  • 55
  • 72
8
votes
2 answers

rJava is not picking up the correct Java version

I've been struggling with this problem for a while now. When I install rJava from R, it takes Java 1.6 instead of 1.8. I am using MAC OS 10.8.5 and these are the steps that I've already done. I've installed R. I have both Java 1.6 and 1.8 on my…
user2843669
  • 123
  • 1
  • 1
  • 9
8
votes
1 answer

rJava generics type

I have been playing with rJava package, but since it seems that rJava is not aware of Java generic types, I have difficulties creating java object with generic type parameters. If I have a java class like: public class A { private B b; …
7
votes
1 answer

Rstudio holds Excelfile permission - XLconnect

Since I updated RStudio last day I cannot get Rstudio to drop it's hold on my excelfiles. I've tried the following to no avail: unlink(fileName, recursive = TRUE) file.info(fileName) file.remove(fileName) file.info gives the following: size…
ErrantBard
  • 1,421
  • 1
  • 21
  • 40
7
votes
0 answers

unable to install rJava dependency in ubuntu server

I am trying to install some packages (mailR) to be able to communicate errors and messages to my users by mail, and connecting to HIVE server via rJdbc but installing rJava dependency is getting convoluted more and more as steps are…
Forge
  • 1,587
  • 1
  • 15
  • 36
7
votes
2 answers

rjava dependent package installation Segmentation fault (core dumped)

I am trying to reinstall a package that I was previously able to install and use. I was building a package of my own after my computer unexpectedly restarted and then I started to have problems loading the rpgraph package. So I decided to uninstall…
gonzalipto
  • 71
  • 1
  • 4
7
votes
1 answer

How to set JAVA_HOME and PATH in Windows 10 when loading rJava into R

When loading rJava I get the following error message: Error in get(Info[i, 1], envir = env) : lazy-load database 'C:/Users/dell_x/Documents/R/win-library/3.3/rJava/R/rJava.rdb' is corrupt I have tried setting JAVA_HOME to the jre directory by doing…
Alberto C
  • 91
  • 1
  • 1
  • 5
7
votes
6 answers

Install xlsx and rJava on macOS Mavericks 10.9.5

Its being a real nightmare to install rjava on my Mac. My setup: MacOS 10.9.5 Java: 7u71 (64 bits dowloaded from Oracle site) R: R version 3.1.1 (2014-07-10) First, in the command line I ran the sudo R CMD javareconf Then, I ran inside…
Menthor
  • 71
  • 1
  • 2
7
votes
2 answers

Problems loading rJava Package on Win7

I have installed the latest versions of R (2.15.2) and Java (7.11), and through RStudio (0.97.310) I am trying to load the rJava package. It seemed to install properly, but when I call library(rJava) I get the following error: Error : .onLoad…
user1996095
  • 131
  • 1
  • 5
1 2
3
40 41