similar to: Using JRI Calling R function from Java

Displaying 20 results from an estimated 600 matches similar to: "Using JRI Calling R function from Java"

2010 Mar 24
0
Trying to create R dataframe with JRI
Hi all, I am writing here because the JRI mailing list seems abandoned... maybe some of you guys know an answer or has a pointer into the right direction. I am quite confused by the jars that exist between rServe, JRI and rJava. What I want to do is simply using a local R instance from Java and I thought (and still think) JRI is the way forward. I did the following steps: 1) Installed
2006 Sep 28
2
calling R from within Java, using jri
Hi, I want to call R from within Java, using jri as per http://www.rosuda.org/software/jri/ So I am following the instructions in the README file for JRI 0.2-4. I have run 'sh configure.win' and 'make' and they seemed to be successful. (See below for the output from make, for example.) But when I try 'run.bat rtest' (with and without R command line arguments) the output
2011 Mar 04
0
Cannot find JRI native library
Dear All. I was trying to connect java and R using jri but i have received some errors. Operating system - windows7, Java version = java 1.6.0_23, R version = R 2.12.1. JAVA_HOME and R_HOME variables are set in user variables and system variables. I have also added JRI .jar path in the system variable. Could you please suggest any solution? Cannot find JRI native library! Please make sure
2007 Jun 24
1
JRI and Axis Web Service
Hi all, It is my first time to use the R-help mailing list and doesn't have too much R acknowledge. The reason that I am writing this email is looking for helps of using JRI in Java Axis Web Service. Well, I am not quite sure if this is the right place to ask this kind of questions, but I can't find the JRI mailing list. So please give me some hints if this is not the right place to
2008 May 16
2
Getting JRI/rJava to work
Hello All I am trying to get the JRI examples from rJava to work on Windows XP and failing. (And as a more general and connected question is there any review/summary of front-end software for R?) I have installed rJava from the Windows binary supplied. I compile and run the example supplied (rtest.java) and get the results below. I do not think the notes about a deprecated API are a problem. But
2009 Feb 28
2
Using JRI and Java 1.6 on MAC OS X
Dear R-Help, I am trying to get JRI (the rJava interface allowing Java to connect to R) to work. I was able to run it a week ago when I was doing some testing using Java 1.5. However, I am developing a GUI application using some of the new Java 1.6 features and I just can't get JRI to work with this setup. Here is what I get: Cannot find JRI native library! Please make sure that the JRI
2007 Jun 12
1
Trouble making JRI.jar with Ubuntu and Java6
Hi, Forum newb here, looking for some help. Have been trying to install an R-Java interface to make R calls from Java. JRI's configure script runs fine, but when it comes to make, I get the "error: too few arguments to function 'R_ParseVector'" Java runs fine. R runs fine. But I can't get this .jar file created. <grumble> Any help would be appreciated immensely,
2006 Jul 19
1
ASCII dump from an REXP (JRI)
Hi Simon, Thanks so much for your help. Your advice has been taken to heart. I now pass in blocks of 100,000 records, and it does 100,000 predictions in seconds and returns a logical vector with the predictions to an int array. It works like a charm! I want to reference what we were talking about earlier. Let?s say we evaluate an R expression. Is there a way to just print, verbatim, what R
2006 Dec 22
0
Build a matrix using JRI
Hi everyone I'm a new user of R and JRI for a project (debian + eclipse + Java + JRI). I need to build a matrix from datas and i proceed like this : First step : create the matrix (Rengine re) re.idleEval("A <- mat.or.vec(10,40)",true); Second Step : feed the structure re.idleEval("A[1,1] <- 39",true); re.idleEval("A[1,2] <- 10",true);
2009 Feb 25
1
How to get JRI to work from my NetBeans
Hi, I need your help. I have downloaded a precompiled JRI as part of rJava. I have included rJava as part of my R package libraries. Now I need to be able to work with some R functions from my Java apps. I'm using NetBeans on Windows. I have followed some instructions from http://www.rforge.net/JRI/ but i keep on getting errors when compiling my Java app as follows: run: Cannot find JRI
2009 Feb 25
0
JRI problem with NoClassDefFoundError
I tried to run rtest.java (example Java file found together with JRI library). But I got the following error. I run it with NetBeans on Windows XP. run: java.lang.NoClassDefFoundError: Files\R\R-2/8/1\library\rJava\jri Caused by: java.lang.ClassNotFoundException: Files\R\R-2.8.1\library\rJava\jri at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at
2011 Jan 17
0
help on strange installation process of JRI / rJava 0.9.0
Hi Nidhi, > ... On the other hand, I also found that JRI.jar is missing from > both of these (piodev...) installations. ... this is resolved now in the /mnt/tools/r installation. Background: When compiling R, one needs to provide an option "--enable-R-shlib" in order that R is capable of dynamically linking libraries. Now the desired JRI package (Java calls into R) is part of
2008 Sep 15
0
Problems and doubths with JRI
Hi, I'm Angel Orosa Rodríguez again, I've sent an email in Spanish explaining my problems; here is the same problems but in English, of course. Well, I'm developing an application in Java but I need to call an R program; I've looked for something that I can use for it and I found JRI; when I was trying to install it, I needed to use "sh" command in windows but I
2011 Jan 12
0
Issue loading and executing own function.R with JRI, any ideas?
Hey, how did you manage to load and call your own function with JRI? I managed to execute the build-in R functions with JRI, but when I call r.eval("load(path-to-file)") or r.eval("source(path-to-file)"), but my java program terminates :( Thanks for your help! -- View this message in context:
2010 Aug 23
0
Problems installing JRI on Macintosh/Snowleopard
Dears, I have a problem to install JRI on a Macintosh with Snowleopard OS. <configure> runs without error message but <make> gives the following error message: $ make make -C src JRI.jar gcc -arch i386 -arch ppc -c -o Rengine.o Rengine.c -g -Iinclude -fno-common -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/include
2007 Sep 13
3
Someone Using Java/R Interface--- JRI ?
Hi all, I am writing R code and I want to interface with JAVA i.e. I want to call R from JAVA. That's why i have installed JRI on my machine. There is also documentation available in "Javadoc". But as i am very new to JAVA and well as R, I don't understand much of it. If someone is using this package i.e. JRI, please let me know whether i am going in right direction or not.
2009 Mar 30
0
Problem in S4 object displaying from within a Java application using JRI
I am using JRI (Java R Interface) library in order to call R from within my Java application. But since the "rmu1" and "rmu2" ,see the following code, are objects of type S4 once i run the application the value of Null will be returned for both of them. On this regard, i would appreciate it if anyone can tell me how i am going to display and/ or convert these objects to Java
2011 Dec 29
1
rJava and JRI
Dear All, I am writing R code and I want to interface with JAVA using netbeans. I want to call R from JAVA. What i should pick?rJAVA or JRI? and can someone provide me step-by-step to installing and code for connecting to R. As i am using path analysis. Is it possible to use? Thank you in advance regards, Permata -- View this message in context:
2010 Oct 06
3
How to run own R functions in JRI
Suppose I have implemented my own R function. How do I call this function in Eclipse using JRI? -- View this message in context: http://r.789695.n4.nabble.com/How-to-run-own-R-functions-in-JRI-tp2965288p2965288.html Sent from the R help mailing list archive at Nabble.com.
2010 Nov 19
1
JRI and error message from R_isMethodsDispatchOn
Dear R users, I have a small project written in Java and need some statical tools. Therefore, I used JRI (in rJava package) as an interface between R and Java to write some wrappers for my work. However, I received error message from R while I have more than one java method which wraps R: Error in .Call("R_isMethodsDispatchOn", onOff, PACKAGE = "base") : Incorrect