rjava

rJava won't install on openSUSE 13.2

扶醉桌前 提交于 2020-01-24 14:45:07
问题 I'm trying to install rJava on a fresh install of openSUSE 13.2. JRE and JDK are both installed. When using install.packages() it actually works fine and compiles some stuff, but then the first error messages that I get are these: mp -L/usr/lib64/R/lib -lR -lrt -ldl -lm -licuuc -licui18n /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -licuuc /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -licui18n collect2: error:

rJava won't install on openSUSE 13.2

穿精又带淫゛_ 提交于 2020-01-24 14:43:25
问题 I'm trying to install rJava on a fresh install of openSUSE 13.2. JRE and JDK are both installed. When using install.packages() it actually works fine and compiles some stuff, but then the first error messages that I get are these: mp -L/usr/lib64/R/lib -lR -lrt -ldl -lm -licuuc -licui18n /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -licuuc /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -licui18n collect2: error:

java.lang.NoSuchMethodError when loading model with RNetLogo

孤者浪人 提交于 2020-01-24 01:00:07
问题 I want to start NetLogo from R and load a model. When I start like so ( gui = TRUE ): NLStart(nl.path = "C:/Program Files/NetLogo 6.1.0/app", nl.jarname = "netlogo-6.1.0.jar", gui = TRUE) and load the model I get model:java.lang.reflect.InvocationTargetException When I start like so ( gui = FALSE ): NLStart(nl.path = "C:/Program Files/NetLogo 6.1.0/app", nl.jarname = "netlogo-6.1.0.jar", gui = FALSE) and load the model I get Java-Object{java.lang.NoSuchMethodError: org.nlogo.workspace

Can't load rJava on MacOS Mojave and R 3.5.2

谁说胖子不能爱 提交于 2020-01-21 09:01:05
问题 I have asked a similar question before, but didn't get any answers that I could actually implement. I've also read the answers here and here, but couldn't implement any of them (partially because no answer actually retraces all of its steps. Problem I'm getting an error when trying to load rJava on R 3.5.2 and MacOS Mojave 10.14.3: > library(rJava) Error: package or namespace load failed for ‘rJava’: .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath =

Loading rJava on Mac OS High Sierra

旧巷老猫 提交于 2020-01-10 19:48:30
问题 I am trying to install rJava package for running the XLConnect package. Here are my system details; R studio:Version 1.0.153 Mac OS High Sierra Version 10.13.1 (17B1003) R version: 3.4.2 jdk-9.0.1 however, i get the following error: I have already followed the following threads on this topic but they don't work for me: trouble installing and loading rJava on mac El Capitan rJava does not run on macOS Sierra rJava load error in RStudio/R after "upgrading" to OSX Yosemite A push in the right

Call R from Java using JRI, how to cast return value

ε祈祈猫儿з 提交于 2020-01-05 06:39:25
问题 I'm executing some R commands from Java using JRI.I want to use the results from R in my Java for further calculations but I have no idea how cast the returned object. call code in Java: REXP x; System.out.println(x = rengine.eval("source(\"/..../TS.R\")")); System.out.println( x.asVector().elementAt(0)); last line from R code: eq_all[length(eq_all)-1] -- output in Java console: [VECTOR ([REAL* (3.050462038715372)], [BOOLi* ])] [REAL* (3.050462038715372)] "3.050462038715372" is the right

R's coreNLP::initCoreNLP() throws java.lang.OutOfMemoryError

☆樱花仙子☆ 提交于 2020-01-04 05:54:09
问题 coreNLP is an R package for interfacing with Standford's CoreNLP Java libraries. The first line one must execute (after loading the appropriate packages with the library() command) is initCoreNLP() . Unfortunately, this results in the following error: Loading classifier from edu/stanford/nlp/models/ner/english.conll.4class.distsim.crf.ser.gz ... Error in rJava::.jnew("edu.stanford.nlp.pipeline.StanfordCoreNLP", basename(path)) : java.lang.OutOfMemoryError: GC overhead limit exceeded Note,

rJava not loading in R

末鹿安然 提交于 2020-01-03 03:12:27
问题 So I tried everything I found online but with no luck. I am trying to use qdab library that requires rJava. So I install rJava, try to run library("rJava") and get > library("rJava") Error : .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: JAVA_HOME cannot be determined from the Registry Error: package or namespace load failed for ‘rJava’ Then I tried to add path manually, by Sys.setenv and that's what's happening: > Sys.setenv(JAVA_HOME="C:\\Program

rJava fails to install (MacOS, Red Hat)

不羁的心 提交于 2020-01-01 00:00:57
问题 I am experiencing the same rJava problem that many other people seem to of had at one point or another. The error occurs when R CMD INSTALL tests whether JNI programs can be compiled. The output recommends running R CMD javareconf -ed or sudo R CMD javareconf The output of the latter is : computer: home$ sudo R CMD javareconf Java interpreter : /usr/bin/java Java version : 1.6.0_31 Java home path : /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Java compiler : /usr/bin/javac

Call Java from R

这一生的挚爱 提交于 2019-12-25 09:49:06
问题 I want to execute Java code from R. I used rJava package and I was able to execute a simple code of Java such as create object or print on screen. require("rJava") .jinit() test<-new (J ("java.lang.String") , "Hello World!") However what I want to do is to send a dataframe from R or CSV file and execute a code in Java then return the output file to R. At the same time, it is difficult in my case to call the R code from Java, as I want to process the CVS file first in R , then apply the Java