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

[R] calling r from java

2020-11-27 Thread Eduard Drenth
Dear all, As a java developer I prefer to develop rest services using jax-rs. Now I developed a service that executes Rscript (Using ProcessBuilder), sends text to stdin of the process and reads from stdout of the process. Works fine, but this is inefficient, because every call reloads all that