Questions tagged [rserve]

Rserve is a server which allows other programs to use facilities of R either using TCP/IP or unix sockets.

Rserve is an open-source server which allows other programs to use facilities of R either using TCP/IP or unix sockets. It supports parallel connections, data and code pre-loading, which makes it possible to use R from web pages and other systems due to its fast response. The distribution includes Java, C++ and PHP clients. 3rd party clients for other systems exists as well.

Rserve is a TCP/IP server which allows other programs to use facilities of R from various languages without the need to initialize R or link against R library. Every connection has a separate workspace and working directory. Rserve supports remote connection, authentication and file transfer. Typical use is to integrate R backend for computation of statstical models, plots etc. in other applications.

235 questions
2
votes
2 answers

Plot() error when using REngine.Rserve

I'm now work on a project which wants to use org.rosuda.REngine.Rserve to use facilities of R by C#. I have a particular problem that when I run the following code in C# client side: c.eval("pdf(file=\"plots.pdf\", width=11,…
fishfish311
  • 35
  • 1
  • 6
2
votes
2 answers

Invoke R Language/script from java

How do we invoke R language / R script from java? Basically I need java kind of wrapper around R script. Data will be given to java layer say method setData(double[]) which should in turn sends to R script - let us say setDataR(double []) method.…
sset
  • 147
  • 1
  • 8
1
vote
1 answer

When a java application executes the Rserve binary, the Rconnection fails

when I call the Rserve application within my java code with a runtime class the following evaluation commands fail. But if I start the Rserve application from a terminal there is no error in the evaluation.
1
vote
1 answer

Module reads package ... from both java.base and api.classic

I am programming my fisrt JavaFX v17.0 project using Maven under Intellij. Everything was fine, I was able to create a JavaFX view-controller and to display it. But the problem came when I added these lines to the module-info : requires Rserve; …
Hidden_Bad
  • 33
  • 5
1
vote
0 answers

Communicating Rserve and C#

Most of the questions that somewhat relate to this link to old/deprecated resources, so I'm asking it once more. I have a special tool that gets a lot of traffic and utilizes complex computations through R. We have opted to use Rserve to be able to…
nkacolz
  • 214
  • 1
  • 8
1
vote
1 answer

Handle a string return from R to Tableau and SPLIT it

I connect Tableau to R and execute an R function for recommending products. When R ends, the return value is a string which will have all products details, like…
Varun kadekar
  • 427
  • 6
  • 15
1
vote
1 answer

RServe: control pipe to master process is closed/broken

I have this R script: palindrome <- function(p) { for(i in 1:floor(nchar(p)/2) ) { r <- nchar(p) - i + 1 if ( substr(p, i, i) != substr(p, r, r) ) return(FALSE) } return(TRUE) } that I am calling from Java using the following…
AMAY
  • 67
  • 1
  • 7
1
vote
2 answers

Python interpreter server similar to RServe

In R there's an RServe package which runs binary R server. I can connect to it remotely, execute R commands and get structured output. Useful thing. I'm wondering if there's something similar in Python available. I want to run Python interpreter on…
rfg
  • 1,331
  • 1
  • 8
  • 24
1
vote
0 answers

Rserve sub-processes memory issue

I have a Java server from which I am calling R functions using c.eval. I use Rserve to do this and preload all libraries using the following call R CMD Rserver --RS-conf Rserve.conf The file Rserve.conf has all my loaded libraries. The total…
Arun Krishnan
  • 211
  • 1
  • 3
  • 10
1
vote
0 answers

JRI program terminates java during REngine creation

I want to call an R script using Java. I am trying the JRI method to call the R script. However my JVM gets terminated when creating an Rengine. I am running one of the examples which has been provided alongside rJava library installation in R. Code…
Anup Hegde
  • 11
  • 1
1
vote
1 answer

Start Rserve instance with SSL/TLS?

I am in a Windows environment, trying to start an instance of Rserve with TLS/SSL encryption using a config file with the following settings: tls.key Rserve.key tls.cert Rserve.cert tls.port 4902 qap disable When I build my Rserve instance, I get…
1
vote
1 answer

How to get a dataframe from R to C# using RserveCLI2

I am trying to get a dataframe from the R environment to C# using the package RServeCLI2. I can't seem to get the correct way to do so. It shouldn't be this hard. In C# I did: using System; using RserveCLI2; class TestMain { public static…
Shique
  • 724
  • 3
  • 18
1
vote
1 answer

attempt to access org.rosuda.REngine.REXPGenericVector as int

I'm doing a project using Java to call R based on Rserve.When I execute R code in Java,I get an error. This is my java code: xp=c.eval("eperson(economic)"); System.out.println("----eperson(economic).asList()-----"); …
Anne
  • 15
  • 3
1
vote
1 answer

How to pass an Array from java to R

I am using RServe() and trying to pass an arraylist from java to R. I am getting an error, both program code and error I have given. String vector = "c(1,2,3,4)"; connR.eval("meanVal=mean(" + vector + ")"); double mean =…
1
vote
0 answers

R Graphics device not responding

I am using java with Rserve to generate a phylogenetic tree. RConnection r=null; r = new RConnection(); r.eval("library(ape)"); r.eval("dev.new(plot(rtree(10)));dev.off()"); As you can see in the image provided below the code works but the Graphics…
Eli
  • 63
  • 6