similar to: Rserve/RandomForest does not work with a CSV?

Displaying 20 results from an estimated 1000 matches similar to: "Rserve/RandomForest does not work with a CSV?"

2009 Mar 13
0
ctree from Java via Rserve
Hi, I want to run the R-function ctree (package party) from Java over Rserve with the following Java-Code: try{ RConnection v = new RConnection(); v.voidEval("library(party)"); v.voidEval("try(load(\"C:\\Documents and Settings\\daten2.rda\"))"); v.voidEval("try(pdf(\"C:\\Documents and Settings\\test4.pdf\"))"); v.voidEval("plot
2005 Dec 09
0
Multiple Figure environment through Java
I am trying to create a .jpg file with multiple graphs on it. I am creating this file through a java servlet which connects to R using RServe. In the code below, col is an int array which has a list of the col numbers of the data file whose data i have to use for plotting. c=new Rconnection();
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"); ...
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.*;
2009 Jan 15
2
Interface to open source Reporting tools
Hi, I am a new user of R 2.8.1. I use Tinn-R for code editing. I use a windows 2003 system with 1 GB RAM. I am interested to generate dashboard and reports based on data from MS Access. These reports need to be posted on a weekly basis to the web. The reporting interface should provide facilities for "what if" scenarios. Is it possible to interface R analysis results to good open
2009 Mar 11
1
RServe
Dear all, I'm trying to use R-functions from Java. I want to use the Package Rserve. Everthing is installed and I can run my Java-testprogramm. ... Rconnection r = new Rconnection(); double[] d = r.eval("rnorm(10)").asDoubleArray(); ... But now I get always arrays with ten "0.0", which is not correct I suppose, that is is a problem from R, because at the fist time (last
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
2006 Jul 17
0
Handshake exception in Rserve
Hello, We are facing some problem while calling a Rserve API from our Java client. The details are as below: 1) We have installed Rserve on linux machine "Nagarajan"(Port: 6311) and related modules. 2) We have started the Rserve in daemon mode perfectly by executing the comman " R CMD Rserve" on the linux machine. But when the Java client executes the statement:
2008 Jan 11
0
cairo and rapache [was: Weird errors on MAC OS X Leopard when using Cairo/GDD through Rserve]
Charles, Greg, the problem is that Apple's FreeType on Leopard uses CF calls (albeit just to get files), so it breaks on fork. (The message is moot, because the whole point of using fork is to *not* use exec). In any case the solution is to compile your own version of freetype, fontconfig and cairo without any CF or Carbon API. Fortunately most recent versions of FreeType will do so
2008 Jul 31
1
'system' command through Rserve
Hello, I've installed an Rserve instance on a remote server. I have no problem interfacing with it and running most commands. I have loaded some R scripts on the remote server, and one of them contains a system command to copy a file (created by the script) onto another server. When I run the script on the remote server itself, the script works as I intend: it creates a .csv file and uses
2010 Aug 20
1
Rserve (Anyone?)
REXP has an asBytes() method. Will this capture the output of an R plot function if a proper graphics device is used? It appears R insists on sending plot output to a file. Kind of strange since it insists on loading all your data into memory before it can do anything. If so then does anyone know what this would be? I prefer png or jpeg. Example: c is an RConnection REXP r =
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
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
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
2006 Sep 05
1
Reserve and biobase
Hi I am using Rserve for R2.3.1. every time after I load Biobase library, a new Graphics window frame pops up. Could any onw know how can avoid it. Best Saeede class testReserve { public static void main(String[] args) { RServeConnection rsCon = null; Rconnection c = null; Process proc = null; try { Runtime rt = Runtime.getRuntime(); proc
2009 Aug 03
1
RServe - How to use 'createReference' method?
I need to input a txt, or xls, file from a client to R, using RServe. >From what I've been reading, the best way to do this, is using the 'createReference' method, from REngine package. But I couldn't find any documents exemplifying it's use. I got to upload a file from java? And then? How do i refeer the file to this method? Best Regards, J. Daniel -- View this message
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
2012 Mar 26
1
NA in R package randomForest
I have a question regarding NA in randomForest (in R). I have a dataset which include both numerical and non-numerical variables, and the data includes some NA. I tried to use na.roughfix but then i get an error message "na.roughfix only works for numeric or factor". I also tried rfImpute but this does not work either because I have some NA in my response variable. Does anyone have som
2010 Aug 17
1
DetachedEval Issues
Hello everyone, I have been attempting to make use of the newly implemented detachedEval functionality and I am having a few teething issues. My code works fine when tested with both the Client and the Server on a single machine, but issues arise when I run them separately.Possibly because the local / local connection is running voer a Unix socket rather than tcp proper? Rsession*
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