similar to: Accessing R from Java [Broadcast]

Displaying 20 results from an estimated 2000 matches similar to: "Accessing R from Java [Broadcast]"

2006 Oct 11
0
Accessing R from Java
Hello All, I am Fuad from Indonesia. I am doing a research using R. I need to access R from Java. Here are my computer specifications : 1. Windows XP 2. Java 1.4.0 3. R 2.2.1 4. rJava_0.4.3.zip ; I download the binary from CRAN 5. Rserve_0.4 ; I download the exe from Rosuda 6. JRI_0.3.5.tar.gz from Rosuda too I have successfully install and try a
2006 Jul 17
0
Handshake exception in Rserve [Broadcast]
We had something similar, and as far as I recall the problem turned out to be that we had not set the config file to allow remote connections. This would probably be better put on the Rosuda mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel Hope this helps, Matt Wiener -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces
2009 Jun 12
0
JRclient.RSrvException Exception: Handshake
Hi all, first of all: Sorry for my bad englis, and now the Question: I have some problems with running R from Java. First i tried using rJava (JRI). But the examples didnt work properly. Now im trying to establish a connection by using Rserve and JRclient (RF503). I have the following code, which i`ve found: ------------------------------------------------------------------------ public
2006 Nov 06
0
rJava: java.lang.OutOfMemoryError
Hy, In my case I just invoked as root (on a linux box) the command R CMD javareconf and checked if my system and root vm did match the version of the user vm. After this the command .jinit(parameters=c("-Xmx512m","-Xmx128m")) could be executed without errors. I got this information from http://www.rosuda.org/JGR/down.shtml -- Hi, Has anybody encountered the following
2007 May 20
0
Problems accessing Rconnect
Hi. I nearly have Rserve working.... I have the dialog box which says.. Rserve: Ok, read to answer queries. Having read all i can find, I followed the guidance given on http://rosuda.org/Rserve/example.shtml I tried to follow the first example but I am getting an error descirbed below. My IDE looks like this: http://www.nabble.com/file/p10705244/ide.jpg However, when I try and compile my
2010 Dec 06
0
Error with Rserv
Hi I get this error with Rserve: eval failedeval failed, request status: R parser: syntax erroreval failed, request status: R parser: input incompleteorg.rosuda.REngine.Rserve.RserveException: eval failed at org.rosuda.REngine.Rserve.RConnection.eval(RConnection.java:233) at se.ucr.qrep.RGenerator.generateReport(RGenerator.java:45) Anyone know what it could mean? -- View this message in
2010 Nov 08
2
Rserve alternative?
The Rserve documentation at http://rosuda.org/Rserve/doc.shtml#start states that even when making multiple connections to the Rserve, Windows won't separate workspaces physically and share environments, which will obviously cause problems and should therefore not be used. Are there any alternatives for the windows platform? Ralf
2009 Apr 05
1
RJava question(class not found with rJava's vm, though found with alternate vm)
Not sure if this the right place, but I can't seem to subscribe to the rJava mailing list. Sorry for the noise. I have a jar file in the CLASSPATH variable. On running .jinit and checking .jclassPath, i can see the jar file containing the class. Yet when trying to instantaite the class, i get a class not found error. Now If if, create my own vm (see below), and then run .jinit (which will
2006 Apr 15
2
cannot load rJava in R
Hi all! I recently tried to install the rJava package on my notebook (Debian Etch / Kernel 2.6.15 / jdk 1.5.0-5 / R 2.2.1 / rJava ?? the repo one, have a look below). I compiled R myself with "--with-readline=no" and "--enable-R-shlib flags". Now, each time loading the library rJava I encouter the same error. I reinstalled several times (as root), always the same problem:
2011 Mar 09
0
java+R+serverEval failed+request status: control pipe to master process is closed/broken
hi: when I run the example program on windows XP+NetBeans: Rserve_0.6-3\Rserve\src\client\javanew\Rserve\test\test.java { // test control commands (works only when enabled and in Rserve 0.6-0 and higher only) - must be the last test since it closes the connection and shuts down the server System.out.println("* Test control commands (this will fail if control commands are disabled)
2007 May 24
0
MDScale from within Java using Rserve?
Hi there. I am able to create a multidimensional scaling algorithm in R using the following code: places<-read.table("C:\\Project\\R\\places.txt") places.location <- cmdscale(places, k=2) round(places.location,0) plot(places.location,type="n", xlab="", ylab="",main ="cmdscale(places)") What I would like to know is how I can do this by
2005 Aug 22
1
Fetching Warning Messages
Hi, I am facing one problem of fetching R warning messages in Java Code using Rserve. It is easier to trap R Error messages by using catching RSrvException. I came to know one way of fetching R Warning messages, i.e. using "withCallingHandlers", below is my Java Program, which uses withCallingHandlers of R : import org.rosuda.JRclient.*;
2017 Oct 26
0
How to create a table structure in Java code?
I suspect that you are looking for something like: read.csv(textConnection( "5.1,3.5,1.4,0.2,setosa 4.9,3,1.4,0.2,setosa 4.7,3.2,1.3,0.2,setosa 4.6,3.1,1.5,0.2,setosa 5,3.6,1.4,0.2,setosa" ), header = FALSE) HTH, Jan On 25-10-17 12:50, Morkus via R-devel wrote: > Hi all, > > Using RConsole, it's easy to get data from the database that you can use in an R Command. Like
2009 Mar 19
4
Import R-output into Java
Hello, I want to import R-output via Rserve to Java, especially for the function ctree from the package party. Rserve is working properly. Yet, I only get the predictions with the Java code try{ RConnection c = new RConnection(); ... c.voidEval("modell <- ctree(...)"); REXP y = c.eval("nodes(modell,1)[[1]]$prediction"); ...
2017 Oct 25
2
How to create a table structure in Java code?
Hi all, Using RConsole, it's easy to get data from the database that you can use in an R Command. Like this: (Reference case) irisQuery <- dbGetQuery(conn, "select * from iris") boxM(irisQuery [,-5], irisQuery[,5]) ---- (Actual case this posting is about) Yet, if I'm getting that same (sample IRIS) data, say, in a web service possibly POSTED from a SQL command, that same
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
2008 Nov 30
1
Rserve and creating a list of lists
Hello, I have some code which generates lattice objects. The function recieves serialized forms of the lattice objects which it then unserializes and then adds to an ArrayList<REXP>. REXPRaw rser = new REXPRaw( target ); //target contains the raw serialized forms of lattice objects rconn.assign("temp",rser); REXP ret =
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
On 28/10/2017 7:12 AM, Morkus wrote: > Thanks Duncan. Awesome ideas! > > I think we're getting closer! > > I tried what you suggested and got a possibly better error... > . > . > . > rConnection.assign("boxMVariable", myDf); > > *String resultBV *= *"str(boxMVariable)"*; *// your suggestion.* > > *RESULTING ERROR:* > >
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
Does it work if you supply the closing parenthesis on the call to boxM? The parser says the input is incomplete and a missing closing parenthesis would cause that error.. // create a string command with that variable name.String boxVariable = "boxM(boxMVariable [,-5], boxMVariable[,5]"; // try to execute the command... // FAILS with org.rosuda.REngine.Rserve.RserveException: eval
2009 May 13
0
Segmentation fault in package rJava on CentOS server
Hello, I just installed rJava on [root at UG13 ~]# R --version R version 2.9.0 (2009-04-17) runing on a [root at UG13 ~]# cat /etc/redhat-release CentOS release 5.3 (Final) This is the output of [root at UG13 ~]# R CMD javareconf Java interpreter : /usr/bin/java Java version : 1.4.2_18 Java home path : /usr/java/j2sdk1.4.2_18/jre Java compiler : /usr/bin/javac Java headers gen.: