Displaying 20 results from an estimated 600 matches similar to: "More Embedding REngine in Cocoa"
2009 Mar 17
1
Embedding R Engine in Cocoa
Hello Everyone,
I'm attempting to use the R-Engine from the Mac R.app GUI project to embed R
in an Objective-C application I'm writing.
However, after a few days of trying, dependencies to the GUI keep tying me
down. I don't need anything fancy, I'm just feeding in vectors and running
regressions on them, but even that seems to escape me.
I've seen on the outdated R/Cocoa
2010 Mar 24
1
R and/or REngine kills Java
Hi all,
I am using R and JRI under Windows XP Pro. I am posting this question
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
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
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
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 =
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
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
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:
Error in format.default(nam.ob, width = max(ncn), justify = "left") : invalid 'width' argument
(No idea
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,
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
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
Hey Duncan,
Hard to debug? That's an understatement. Eyes bleeding....
In any case, I tried all your suggestions. To get "integer" for the final column, I had to change the code to get integers instead of strings.
double[] d1 = ((REXPVector) ((RList) tableRead).get(0)).asDoubles();
double[] d2 = ((REXPVector) ((RList) tableRead).get(1)).asDoubles();
double[] d3 = ((REXPVector)
2017 Oct 26
3
How to create a table structure in Java code?
That's amazing! Thank you!!!
One follow up question, if that's OK?
If, instead of using hard-coded CSV, I read the CSV into a variable first, then it fails again with a parse error.
Code below.
So, if I read the CSV into a variable, do I need an additional wrapper method?
Seems like it should still work.
Thanks in advance for your reply.
-M
String inputIris =
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
Thanks Duncan. I can't tell you how helpful all your terrific replies have been.
I think the biggest surprise is that nobody appears to be using Java and R together like I"m trying to do. I suppose it should be a surprise since there are no books on the subject and almost no technical documentation other than a few sites here and there.
-----
I originally had the "int" as the
2007 Dec 06
2
R-Cocoa Bridge
I had seen old posts on the list (circa 2002) regarding a Cocoa-R
bridge that was under development, but I can't find anything recent
about it. Does anyone know if this is available somewhere? If not,
does anyone have any experience/pointers calling R functions from Cocoa?
Thanks for your time,
Lee Falin
2013 Nov 21
2
Running R embedded in an mpiexec spawned process - Fatal error: you must specify '--save', '--no-save' or '--vanilla'
I'd like someone familiar with the R options initialization to comment on a difference of behavior within/without mpiexec
I have a (.NET) application with embedded R that is proven to run in a single process:
./Sample1.exe
on a Debian Linux with R 3.0.2
Running the same code with mpiexec, it fails at the R engine initialization:
mpiexec -n 1 ./Sample1.exe
Fatal error: you must
2007 Apr 06
2
wishlist: additional argument in R_tryEval (Rinternals.h)
Hi,
R_tryEval, exported in Rinternals.h but not part of the API, is
currently defined as:
R_tryEval(SEXP e, SEXP env, int *ErrorOccurred);
I'm trying to embed R in an application (basically yet another GUI),
and this has been very helpful to catch errors. It would be even more
helpful if it also gave access to the visibility flag. I can wrap this
in a call to withVisible, and that works
2008 Jun 02
2
Problemas usando jri0.4-1 y R 2.7.0
Hola, es la primera vez que mando un correo a cualquiera de las listas de
correo de R y no se si esta consulta se ajusta al próposito de la r-help
list o deberÃa haberlo mandado a otra de las listas que hay.
Mi problema es el siguiente: Estoy desarrollando un programa en java con
llamadas a R y no puedo usar jri 0.4-1 con la version 2.7 o 2.6 de R.
Curiosamente si me funciona si uso jri 0.4 o la
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
2008 Dec 14
1
Help - java.library.path
Hello all,
I`m a computer science student from Frankfurt/main (germany).
Our student team (10 students) are working on a R/Interface project (Java
and R) and we have a problem with R and JRI.
We are working on 10 computers with Windows XP SP2, R 2.8.0, jdk1.6.0_11
and the same classpath setttings but our application works only on two
computers. We can't explain us this.
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
2008 Nov 26
1
Running rtest - how to/ help
I am trying to run rTest example (XP, Eclipse, ) available with code.
JRI etc are used from the rJava package (i.e. Haven't built myself)
The code dosent runs properly - it shows ( i tried passing argument as
--save). what else is possible.
'Creating Rengine (with arguments)' and then gets terminated.
When I am trying to use run.bat
>run.bat examples\rtest.java
it says
>