Questions tagged [rjava]
rJava is an interface between R and Java.
615
questions
0
votes
0
answers
9
views
calling ggplot2 through rJava on Ubuntu20
We are facing a problem while running ggplot through rJava.
The problem occurs only if the geom_line() parameter is used with ggplot2.
The code runs properly and produces the graph for the first ...
0
votes
1
answer
30
views
rJava .jcall java method parameters input issue: with signature ([D[DDD)Ljava/lang/String; not found
Here is my original java code with method of "performCurveFitting" method
public static String performCurveFitting(Double[] conc, Double[] resp, Double classificationSD, Double minYrange) {
...
0
votes
0
answers
18
views
Error in .jcall method run with signature not found
I tried program Geographically Weighted Artificial Neuaral Network (GWANN) and I got error in j.call. This is my script:
library(rJava)
r <- .jcall(obj="supervised.nnet.gwann.GWANN_RInterface&...
0
votes
0
answers
15
views
gettin rJava to work for qdap? All 64bit I think?
I am trying to get qdap to work in rstudio, but I am having trouble getting rJava going. I am currently getting this error:
package ‘qdap’ successfully unpacked and MD5 sums checked
The downloaded ...
0
votes
0
answers
45
views
Error in file(con, "r") : cannot open the connection when running SDMtune::train(method = Maxent, data = data, folds = folds) in R
i am trying to run a MaxEnt model using SDMtune::train function, but I keep receiving an error that I haven't been able to fix (code down below). The weird thing is that I have been able to run this ...
0
votes
0
answers
67
views
Potential Java/arm64 error when loading the xlsx package in R?
I am having trouble loading the xlsx package on R (via RStudio). The error message I get when I try to call the package is as below.
> library(xlsx)
Error: package or namespace load failed for ‘...
-1
votes
1
answer
39
views
Struggling with rJava and dependent packages in Rstudio Mac M1. Error: package or namespace load failed for ‘rJava’:
I'm really struggling with rJava. I have a new machine (Mac M1) and am running r code from an older project on an old intel Mac, and it isn't working at all. I am not especially familiar or confident ...
0
votes
1
answer
31
views
Executing R Script from Java
I am trying to execute an R Script using java program. But json file which has to be generated in the script is not getting generated. But if i run the same r script in R, json file is getting ...
0
votes
0
answers
26
views
Need help in making code for a Preference Attainment Analysis using Wordfish in R
I want conduct a Preference Attainment Analysis for my thesis. More specifically, I want to investigate to what extent the policy preferences of different types of interest groups have been ...
1
vote
1
answer
113
views
What to do if RWekajars package installation gets stuck on Ubuntu 22.04.2 LTS?
I am trying to install the RWekajars package on Linux Ubuntu 22.04.2 LTS, but the installation is getting stuck at the moment described below. It seems to be processing something, but it does not ...
1
vote
0
answers
132
views
shinyapps.io: Error in .jcheck: Java Exception <no description because toString() failed
I have a shiny app that works fine in my laptop. However, when I deploy it to shinyapp.io, I get the error message in the title above. It uses RJDBC to connect to a database to get data. I am confused ...
0
votes
0
answers
88
views
Issues installing tabulizer in R on Mac OS13 and R 4.4
I'm having many issues installing tabulizer in R 4.4 on my Mac OS13. I've reproduced the error message below. I've tried every other suggestion on stack and nothing seems to do the trick. I've ...
1
vote
0
answers
132
views
rJava and RJDBC on Databricks
I am trying to install rJava and RJDBC on Databricks (from notebook).
I ran recommended lines:
%sh
ls -l /usr/bin/java
ls -l /etc/alternatives/java
ln -s /usr/lib/jvm/java-8-openjdk-amd64 /usr/lib/jvm/...
0
votes
1
answer
61
views
Error with installation of rJava LoadLibrary failure: %1 is not a valid Win32 application
I tried to install rJava but got these errors. Please help.
install.packages("rJava")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and ...
0
votes
0
answers
30
views
How to run rJava in Mac m1?
I am trying to use write.xlsx and I realized I first needed to run the xlsx library, and therefore the rJava library. I prosive to install the libraries and I got the following error while trying to ...
0
votes
0
answers
28
views
How does one install rJava and qdap onto RLibrary?
I was working on an assignment that requires installing a number of packages (including rJava and qdap), and I was sucessful at that. But when I installed those projects onto RLibrary, I couldn't ...
0
votes
0
answers
27
views
HOW can we create xlsx file and write xlsx file in R? [duplicate]
install.packages('xlsx')
library(xlsx)
require("xlsx")
write.xlsx(data, "data.xlsx")
output:
error 1:
WARNING: Rtools is required to build R packages but is not currently ...
0
votes
2
answers
1k
views
Error running xlsx and rJava on Mac with M1
I've recently started working on a MacBook with M1 Max. But now, in R, with xlsx I get this error:
library(xlsx)
Error: package or namespace load failed for ‘xlsx’:
.onLoad failed in loadNamespace() ...
0
votes
1
answer
328
views
Cannot install rJava on R 4.2.2 arm64: ld: library not found for -lpcre2-8
I'm trying to install rJava, an xlsx package dependency, but I'm having issues getting it to work. Every time I run the install.packages function, I get a long output culminating in the error:
"...
3
votes
1
answer
148
views
why aapt2 does not generate the same ID than aapt? and what the purpose of Ids located inside R.java?
With the equivalent command line, why aapt.exe output different ids than aapt2.exe? also how work exacly the r.java? I use aapt and aapt2 to produce the r.java like this :
"aapt.exe" package ...
2
votes
0
answers
52
views
Why does not rsubgroup initialize Java?
I am working with R 4.2.1, 64bit, Windows 10.
while calling library rsubgroup, I get an error:
library(rsubgroup)
Loading required package: foreign
Error: package or namespace load failed for ‘...
0
votes
2
answers
455
views
Macbook Pro M1 issues connecting to oracle database with R
I am using an M1 MBP running Monterey and trying to connect to an oracle database to pull data into R. Currently I am trying to setup RJDBC but am open to other options if there is something easier to ...
0
votes
1
answer
50
views
rJava passing int to constructor
I defined a java class with several constructors with different parameters. If I try to create a java object in R via obj<-.jnew('testRJava/TestRJava', "Hello", "World") or obj&...
0
votes
1
answer
336
views
ERROR: configuration failed for package 'rJava'
Tried installing rJava on R but getting this error
install.packages("https://cran.r-project.org/src/contrib/Archive/rJava/rJava_0.9-9.tar.gz", repos = NULL, type="source")
Warning:...
2
votes
2
answers
465
views
RStudio fatal error when loading tabulizer
I recently updated R to version 4.2.0 on my Windows 10 PC. When I try to load the package tabulizer, RStudio crashes and the bomb icon with the correspondent "R encountered a fatal error" ...
1
vote
0
answers
241
views
How to set AddVMOption -Doracle.jdbc.thinLogonCapability=o3 or equivalent?
In our organization we are running into the long standing Oracle "unsupported verifier type" bug, well documented since at least the early 2010s. I've been trying to determine how to set the ...
1
vote
1
answer
206
views
Facing an error when trying to install rJava in Azure Data Bricks
Error in dyn.load("/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so") No such file or directory. Facing this error in Azure Databricks.
0
votes
0
answers
693
views
R - Installing package "xlsx"
I'm trying to install the package "xlsx" in RStudio. I am using Ubuntu 20.04 and I am new to programming. I uses the code
install.packages("xlsx")
While the installation process I ...
0
votes
0
answers
74
views
no non-missing arguments to min on vector with text
Hey yall ill keep it short and simple.
im following along with this earnings call sentiment analysis.
https://jagg19.github.io/2019/04/sentiment-analysis-conf-call/
I've had issues with packages but ...
0
votes
0
answers
525
views
iMac Apple M1 Chip macOS Monterey Java Error for RJDemetra Package in RStudio
I have been using this computer for 3 days. I installed Java from official website. And then i installed the package "RJDemetra" for seasonal adjustments. When i try to activate package i ...
1
vote
1
answer
364
views
rJava on macOS with M1X processor
Does anybody know if there is a possibility to install and use the rJava package in R when having the following configuration:
MacBookPro with M1X processor,
macOs 12.1 Monterrey,
Java11, build Azul ...
1
vote
0
answers
35
views
Is the R package AWR.Athena, vulnerable to the security issue in log4j?
AWR.Athena package as per CRAN imports RJDBC, rJava. Hence suspecting if it is vulnerable to the recent Apache Log4j security issue. So information on this would be really helpful.
2
votes
0
answers
323
views
rJava on Mac: Error loading from library: unable to find JVM
I can install rJava seemingly fine from Rstudio:
install.packages("rJava")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/rJava_1.0-6.tgz'
Content type 'application/x-gzip' ...
0
votes
1
answer
216
views
rJava installation ld:library not found for -lpcre2-8
Trying to use rJava and have it use java version 11.
Currently it uses a previous installation I had of version 17.
When I run R CMD javareconf most of the settings look right.
Java interpreter : /...
0
votes
1
answer
93
views
java.awt.HeadlessException error running maxent in "dismo" through rJava
I am trying to run the maxent function in the dismo package on macOS through rJava and keep getting this error message.
Error in rJava::.jcall(mxe, "S", "fit", c("autorun"...
4
votes
4
answers
8k
views
Having Issues installing tabulizer package in R
I had a script working with tabulizer, but had to clean my hard drive and reinstall R, and now I cant seem to even download and access the tabulizer library. I am now using R version 4.1.2 64 bit, and ...
1
vote
0
answers
1k
views
Problem with R studio on Mac with Monterey and arm system
I have this error message and I don't know how to solve it
Loading required namespace: rJava Failed with error: ‘.onLoad failed
in loadNamespace() for 'rJava', details: call: dyn.load(jli, FALSE)
...
2
votes
1
answer
81
views
How to send a Java string to R? (rJava)
I am writing a game that revolves around guessing what words in other languages mean. For example, guessing what "hola" means in English. For this game, I am creating a scoring system that ...
1
vote
1
answer
1k
views
rJava unable to load shared object rJava.so
I am unable to load rJava library after installation in Microsoft R Open 4.0.2.
SessionInfo
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux ...
1
vote
0
answers
459
views
Extract table from PDF in R
I am new to R and I want to extract data from a PDF.
Some context, I have followed a tutorial to setup rJava and then tried to run the code:
pacman::p_load(
rJava,
tabulizer,
tidyverse)
Df <-...
3
votes
3
answers
1k
views
Unable to use package rJava on Macbook with Apple M1 Chip, Get the error below
> library(rJava)
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: dyn.load(jli, FALSE)
error: unable to load shared object '/...
1
vote
0
answers
36
views
rJava loading and executing in shell but not in cron
I am facing a unusual problem on CENTOS 7 system with R 3.6.x. This involves working with rJava Package.
Steps i'm taking to run in root,
sudo -i changing to root
Rscript /opt/mount1/code.R
When ...
0
votes
1
answer
588
views
error: JAVA_HOME cannot be determined from the Registry (R)
I am trying to follow the instructions from this page to perform "rule mining": https://rdrr.io/cran/rCBA/man/fpgrowth.html :
#load library
library(rCBA)
library(rJava)
#load data
data(&...
2
votes
3
answers
308
views
Using parallel alongside rJava and xlsx
I have a huge excel file to manipulate. I need to read colors and styles of a big number of cells and thought to speed up calculations by parallelising tasks. I'm relying on the xlsx package and its ...
6
votes
3
answers
4k
views
How to install rJava package in Mac with M1 architecture
I have a terrible time installing the package in R while I am using a Mac with M1 architecture.
Here are the steps I have followed so far
install Java https://www.azul.com/downloads/?os=macos&...
1
vote
0
answers
248
views
Portably Append R Data to Excel Sheets (Without Overwriting)
Background
I'm writing a .R script on my computer (Windows), which (1) must maintain a Log.xlsx file recording data from its runs; and (2) will be run by a colleague on a separate VM (also Windows).
...
0
votes
0
answers
336
views
RMALLET java.lang.NoSuchMethodError: Ljava/io/File;.<init>([Ljava/lang/String;)
There is an issue when I run RMALLET model, the model is developed based on java.
Here is my code:
stop_vector <- readLines(stopwords_en)
debates.instances.short <-
mallet....
2
votes
0
answers
139
views
R Studio Error :- (Java):Could not initialize class com.miraisolutions.xlconnect.workbook
I have to use XLConnect package for my work. XLconnect Package is perfectly installed and all other package dependencies are also installed.
This package was working fine some time ago but now this is ...
1
vote
1
answer
313
views
Save dplyr query to different schema in dbplyr
I have a JDBC connection and would like to query data from one schema and save to another
library(tidyverse)
library(dbplyr)
library(rJava)
library(RJDBC)
# access the temp table in the native schema
...
1
vote
2
answers
3k
views
R: command not found
I want to install rJava but this fails with the following suggestion:
Make sure you have Java Development Kit installed and correctly registered in R.
If in doubt, re-run "R CMD javareconf" ...