Re: [R] calling r from java

2020-12-02 Thread Eduard Drenth
: [R] calling r from java Date: Mon, 30 Nov 2020 08:36:16 + sun.misc that is -Original Message-From: Eduard Drenth < edre...@fryske-akademy.nl>To: r-help@r-project.org < r-help@r-project.org>Subject: Re: [R] calling r from javaDate: Mon, 30 Nov 2020 07:18:46 + First att

Re: [R] calling r from java (Eduard Drenth)

2020-11-30 Thread Adrian Trapletti
Calling R via Rserve is faster than a REST based solution. However, if you do some non-trivial computation in R, then the calling overhead is insignificant. A REST based solution is more flexible. A REST API can be called e.g. directly from a Javascript UI and the indirection via a Java backend is

Re: [R] calling r from java

2020-11-30 Thread Eduard Drenth
sun.misc that is -Original Message- From: Eduard Drenth To: r-help@r-project.org Subject: Re: [R] calling r from java Date: Mon, 30 Nov 2020 07:18:46 + First attempts to use jri on ubuntu 20.04 stranded. Steps I followed: 1) download rJava from https://www.rforge.net/rJava/files/ 2

Re: [R] calling r from java

2020-11-29 Thread Eduard Drenth
From: Eduard Drenth To: spurdl...@gmail.com Cc: r-help@r-project.org Subject: Re: [R] calling r from java Date: Sat, 28 Nov 2020 11:57:49 + Thanks all, I'll go for https://www.rforge.net/JRI/ and the librariesin maven https://search.maven.org/search?q=jri The maven library is build

Re: [R] calling r from java (Eduard Drenth)

2020-11-29 Thread Eduard Drenth
Because of efficiency? But almost all development I do is in Java/Xml/XQuery so I am interested in efficiently integrating the two. And for our small institution it is important to limit the number of technologies / frameworks. Bye, Eduard -Original Message-From: Adrian Trapletti To: Eduar

Re: [R] calling r from java (Eduard Drenth)

2020-11-28 Thread Adrian Trapletti
Hi Eduard, I recommend separating the R quant code from Java and deploy the R code as a REST service, e.g. using https://github.com/opencpu/opencpu Best regards Adrian Adrian Trapletti Steinstrasse 9b, 8610 Uster, Switzerland P +41 44 994 56 30 | M +41 79 103 71 31 adr...@trapletti.org | ww

Re: [R] calling r from java

2020-11-28 Thread Eduard Drenth
Found this https://github.com/s-u/rJava as the place for rJava development and issues -Original Message- From: Eduard Drenth To: spurdl...@gmail.com Cc: r-help@r-project.org Subject: Re: [R] calling r from java Date: Sat, 28 Nov 2020 11:57:49 + Thanks all, I'll go for

Re: [R] calling r from java

2020-11-28 Thread Eduard Drenth
e: [R] calling r from java Date: Sat, 28 Nov 2020 15:55:36 +1300 Hi Eduard, > Now I developed a service that executes Rscript (Using > ProcessBuilder),sends text to stdin of the process and reads from > stdout of theprocess. This doesn't answer your question, but may be relevant.I

Re: [R] calling r from java

2020-11-27 Thread Abby Spurdle
Hi Eduard, > Now I developed a service that executes Rscript (Using ProcessBuilder), > sends text to stdin of the process and reads from stdout of the > process. This doesn't answer your question, but may be relevant. I have a java-based application that works on a similar principle. (The code is

Re: [R] calling r from java

2020-11-27 Thread Bert Gunter
Heh heh. Criticism accepted. However... 1. Web searching first is still a good idea. 2. Old in not **necessarily** useless -- I fervently hope(calculus has been around since, umm...). This also **might** be useful to the OP: https://cran.r-project.org/web/views/WebTechnologies.html Cheers, Bert

Re: [R] calling r from java

2020-11-27 Thread Jeff Newmiller
Not being a Java programmer I was going to sit this one out, but when Bert points at an 8-year old blog that OP was already saying was too old I figure even I can Google better than that. https://github.com/oracle/fastr which has activity within the last 3 days, though I really don't know anyth

Re: [R] calling r from java

2020-11-27 Thread Bert Gunter
Well ... google is your friend. "calling R from Java" brought up what looked to me like useful resources, including this: https://www.cnblogs.com/mavlarn/archive/2012/12/24/2831688.html Have you done this already? Bert Gunter "The trouble with having an open mind is that people keep coming along

Re: [R] Calling R from Java

2011-06-14 Thread Jamie Olson
You might have better luck with the rJava mailing list: http://mailman.rz.uni-augsburg.de/mailman/listinfo/stats-rosuda-devel Jamie Olson School of Computer Science Carnegie Mellon University 5000 Forbes Ave. Pittsburgh, PA 152

Re: [R] Calling R from Java (trying the R interface to Omegahat and Java)

2009-03-20 Thread Michael Kubovy
Thanks for the tip. I'll start with rJava, and see if that easier approach works. On Mar 20, 2009, at 10:50 PM, Martin Morgan wrote: Michael Kubovy writes: Dear R-helpers, I run R version 2.8.1 (2008-12-22) on i386-apple-darwin8.11.1 I would like to call R from Java. I downloaded SJava_0

Re: [R] Calling R from Java (trying the R interface to Omegahat and Java)

2009-03-20 Thread Martin Morgan
Michael Kubovy writes: > Dear R-helpers, > > I run R version 2.8.1 (2008-12-22) on i386-apple-darwin8.11.1 > > I would like to call R from Java. I downloaded SJava_0.69-0.tar.gz, > and then issued the command suggested on http://www.omegahat.org/ > RSJava/ : Others will point you to rJava