search for: rengin

Displaying 20 results from an estimated 90 matches for "rengin".

Did you mean: rengine
2010 Mar 24
1
R and/or REngine kills Java
...tion here since the reason might be R related (since I am running an R script) but there is also a very good chance that it is JRI only (since I am using the JRI interface to activate the script) -- in which case I want to apologize for misplacing this message. I have a method that instantiates an REngine object every time it is called. It runs a script provided by a file name and closes REngine afterward. The script works fine, the png file is successfully generated and the PNG file is released so that I can delete it if I want ( but I don't in that case). For some strange reason, when running...
2011 May 25
0
issues with rJava; cannot run JRI example
Hello, I am trying to run JRI example from rJava, but I have some issues. I have read many posts and didn't find any solution to my problem. I have the following code: Rengine re = new Rengine(null, false, null); System.out.println("Rengine created, waiting for R"); if (!re.waitForR()) { System.out.println("Cannot load R"); return; } System.out.println("re-routing stdout/err into R consol...
2011 Jan 04
1
an error about JRI
Hi everyone, I try to run my R script in Java, thus I installed JRI. and run the example, I am using Eclipse on 64 bits windows 7. part of the example code is as follows: public static void main(String[] args) { System.out.println("Creating Rengine (with arguments)"); Rengine re=new Rengine(args, false, null); System.out.println("Rengine created, waiting for R"); if (!re.waitForR()) { System.out.println("Cannot load R"); return; } However,...
2008 Nov 30
1
Rserve and creating a list of lists
...ret = rconn.eval("invisible(unserialize(temp))"); (1) rexpArr.add(ret); RList rlist = new RList(rexpArr); REXPList rl = new REXPList(rlist); The problem is when I do an assign rconn.assign("finalresult",rl); whence I get *** REXPFactory unable to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] * ** REXPFactory unable to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] *** REXPFactory unable to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] *** REXPFactory unable to interpret org.rosuda.REngine.REXPUnknown@1629ce8c[4] *** REXPFactory unable to...
2006 Sep 28
2
calling R from within Java, using jri
...nd 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 that I get is 'c:\temp\r\jri>C:/PROGRA~1/Java/JDK15~1.0_0/bin/java -cp .;examples;src/JRI.jar rtest $* Creating Rengine (with arguments)' That suggests that it gets to line 60 in rtest.java then stops on line 61, without producing an error. Line 61 is Rengine re=new Rengine(args, false, null); so it seems that I am not able to construct an Rengine. Can someone suggest what I might try next to track down the...
2009 Dec 14
1
how to use Rengine instance to parse R script String
Hello everyone I am currently developing a web based R script editor. My idea is to pass the R script command as a string into the backend , then use the Rengine instance to parse the R script command and get the resutls. Do anyone know how to use Rengine instance to parse a R script String? if so, could you give me a small example (in Java)? i really appreciate. -- View this message in context: http://n4.nabble.com/how-to-use-Rengine-instance-to-parse...
2009 Mar 25
1
More Embedding REngine in Cocoa
Hello once again, After locating the standalone REngine object set, I am having difficulty integrating them into the XCode project I intend to use them in. Suppose one started with the REngine standalone source and a blank XCode file, what special modifications need to be made to allow the source files to see inside R.framework? Importing the...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...9;width' argument (No idea what this means). For testing, I'm using the same standard IRIS dataset as the Box's M documentation shows in biotools: Examples data(iris) boxM(iris[, -5], iris[, 5]) ------- Now, in the debugger, the built values of myDf are these: myDf = {org.rosuda.REngine.REXPGenericVector at 562} "org.rosuda.REngine.REXPGenericVector at 17d99928+[5]? ? payload = {org.rosuda.REngine.RList at 566} size = 5 ? 0 = {org.rosuda.REngine.REXPDouble at 570} "org.rosuda.REngine.REXPDouble at 6fffcba5[150]" ? 1 = {org.rosuda.REngine.REXPDouble at 571} "...
2007 Jun 12
1
Trouble making JRI.jar with Ubuntu and Java6
...can't get this .jar file created. <grumble> Any help would be appreciated immensely, Taivo Ubuntu FeistyFawn, java-6-sun-1.6.0.00, R 2.5 p.s. Here's the screen output: make -C src JRI.jar make[1]: Entering directory `/home/taivo/coop_summer2007/r/JRI/src' gcc -std=gnu99 -c -o Rengine.o Rengine.c -g -Iinclude -DRIF_HAS_CSTACK -DRIF_HAS_RSIGHAND -g -O2 -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/../include -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/../include/linux -fPIC -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/../include -I/usr/lib/jvm/java-1.5.0-sun-1.5.0.11/jre/../include/l...
2017 Oct 25
2
How to create a table structure in Java code?
...ct.asString()); } REXP boxMResult = rConnection.eval("boxM("+ tableRead+ "[,-5]," + tableRead + "[, 5])"); // FAILS << ---- Error in the above case is: Disconnected from the target VM, address: '127.0.0.1:51356', transport: 'socket' org.rosuda.REngine.REngineException: eval failed, request status: R parser: syntax error at org.rosuda.REngine.Rserve.RConnection.parseAndEval(RConnection.java:454) at org.rosuda.REngine.REngine.parseAndEval(REngine.java:108) at net.example.start_r_fromjava.RStatisticsExample.main(RStatisticsExample.java:151) Does...
2009 Mar 30
0
Problem in S4 object displaying from within a Java application using JRI
...r to make the problem more concrete i have attached the entire Java code contain my R program and the R program itself and its actual result run in isolation: Java application: import java.io.*; import java.awt.Frame; import java.awt.FileDialog; import java.util.Enumeration; import org.rosuda.JRI.Rengine; import org.rosuda.JRI.REXP; import org.rosuda.JRI.RList; import org.rosuda.JRI.RVector; import org.rosuda.JRI.RMainLoopCallbacks; public class Main { public static void main(String[] args) { // just making sure we have the right version of everything if (!Rengine.versionChec...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...;m using the same standard IRIS dataset as the Box's M >> documentation shows in biotools: >> Examples >> data(iris) >> boxM(iris[, -5], iris[, 5]) >> ------- >> ** >> Now, in the debugger, the built values of myDf are these: >> myDf = {org.rosuda.REngine.REXPGenericVector at 562} >> "org.rosuda.REngine.REXPGenericVector at 17d99928+[5]? > >> ? payload = {org.rosuda.REngine.RList at 566} size = 5 >> ? 0 = {org.rosuda.REngine.REXPDouble at 570} >> "org.rosuda.REngine.REXPDouble at 6fffcba5[150]" >> ? 1...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...9;m using the same standard IRIS dataset as the Box's M > documentation shows in biotools: > > Examples > > data(iris) > *boxM(iris[, -5], iris[, 5])* > > *-------* > ** > Now, in the debugger, the built values of myDf are these: > > *myDf* = {org.rosuda.REngine.REXPGenericVector at 562} > "org.rosuda.REngine.*REXPGenericVector*@17d99928+[5]? > > ? payload = {org.rosuda.REngine.*RList*@566} size = 5 > ? 0 = {org.rosuda.REngine.REXPDouble at 570} > "org.rosuda.REngine.*REXPDouble*@6fffcba5[150]" > ? 1 = {org.rosuda.REng...
2017 Oct 26
3
How to create a table structure in Java code?
...; + tableRead + "[, 5])"); // FAILS << >> --------------------------------------------------------------- >> >> Error in the above case is: >> Disconnected from the target VM, address: '127.0.0.1:51356', transport: 'socket' >> org.rosuda.REngine.REngineException: eval failed, request status: R parser: syntax error >> at org.rosuda.REngine.Rserve.RConnection.parseAndEval(RConnection.java:454) >> at org.rosuda.REngine.REngine.parseAndEval(REngine.java:108) >> at net.example.start_r_fromjava.RStatisticsExample.main(RStatist...
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 -I/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/include/. -I/Library/Frameworks/R.framework/Resources/include Rengine.c: In function ?Java_org_rosuda_JRI_Rengine_rniPar...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...t as the Box's M >> documentation shows in biotools: >> Examples >> data(iris) >> /boxM(iris[, -5], iris[, 5])/ >> /-------/ >> ** >> Now, in the debugger, the built values of myDf are these: >> /myDf/ = {org.rosuda.REngine.REXPGenericVector at 562} >> "org.rosuda.REngine./REXPGenericVector/@17d99928+[5]? >> >> ? payload = {org.rosuda.REngine./RList/@566} size = 5 >> ? 0 = {org.rosuda.REngine.REXPDouble at 570} >> "org.rosuda.REngine./REXPDouble/@6fffcba5[150]&q...
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
...t as the Box's M >>> documentation shows in biotools: >>> Examples >>> data(iris) >>> /boxM(iris[, -5], iris[, 5])/ >>> /-------/ >>> ** >>> Now, in the debugger, the built values of myDf are these: >>> /myDf/ = {org.rosuda.REngine.REXPGenericVector at 562} >>> "org.rosuda.REngine./REXPGenericVector/@17d99928+[5]? >>> ? payload = {org.rosuda.REngine./RList/@566} size = 5 >>> ? 0 = {org.rosuda.REngine.REXPDouble at 570} >>> "org.rosuda.REngine./REXPDouble/@6fffcba5[150]" >...
2010 Sep 06
1
RJava
hello I am having the same problem published in https://stat.ethz.ch/pipermail/r-help/2008-July/167191.html but I haven't seen the solution Could some body helpme thank you so much LEIDY [[alternative HTML version deleted]]
2013 Nov 21
2
Running R embedded in an mpiexec spawned process - Fatal error: you must specify '--save', '--no-save' or '--vanilla'
...#39;--save', '--no-save' or '--vanilla' ------------------------------------------------------------------------- The following is working: mpiexec -n 1 R --no-save However in my Sample1 application, I do set up R init options that should be suitable AFAIK: rEngine = REngine.CreateInstance("RDotNet"); StartupParameter rStartParams = new StartupParameter { Quiet = true, SaveAction = StartupSaveAction.NoSave, Slave = false, Interactive = true, Verb...
2017 Oct 29
0
Cannot Compute Box's M (Three Days Trying...)
...biotools: >> Examples >> data(iris) >> /boxM(iris[, -5], iris[, 5])/ >> /-------/ >> ** >> Now, in the debugger, the built values of myDf are these: >> /myDf/ = {org.rosuda.REngine.REXPGenericVector at 562} >> "org.rosuda.REngine./REXPGenericVector/@17d99928+[5]? >> ? payload = {org.rosuda.REngine./RList/@566} size = 5 >> ? 0 = {org.rosuda.REngine.REXPDouble at 570} >> "org.rosuda.REngine./REXP...