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
23
votes
4 answers

Simple program to call R from Java using Eclipse and Rserve

My application must perform R operations such as: m = matrix(sample(0:1,100, rep=T),ncol=10) The results should be available to a Java application. The Rserve package bridges R to other languages, since it acts as a TCP/IP server. I've read the…
Musmar
  • 241
  • 1
  • 3
  • 9
21
votes
2 answers

Clearing all user-defined objects in R workspace

I'm working with Rserve via Ruby bindings. It's pretty trivial to establish a connection to Rserve, and I assume its a good idea to persist that connection globally to avoid the overhead of tearing it down and re-building it as needed (I'm not…
Allyl Isocyanate
  • 13,306
  • 17
  • 79
  • 130
20
votes
1 answer

Store large data or a service connection per Flask session

I'm writing a small Flask application and am having it connect to Rserve using pyRserve. I want every session to initiate and then maintain its own Rserve connection. Something like this: session['my_connection'] = pyRserve.connect() doesn't work…
alexizydorczyk
  • 850
  • 1
  • 6
  • 25
19
votes
3 answers

How to specify R CMD exec directory?

Previously I have been able to start Rserve from the command line via: R CMD Rserve After upgrading to 3.0.2 on Ubuntu, I get: /usr/lib/R/bin/Rcmd: 62: exec: Rserve: not found I've tried reinstalling and launching manually via R >…
Allyl Isocyanate
  • 13,306
  • 17
  • 79
  • 130
15
votes
3 answers

How can I shut down Rserve gracefully?

I have tried many options both in Mac and in Ubuntu. I read the Rserve documentation http://rforge.net/Rserve/doc.html and that for the Rserve and RSclient…
user3570398
  • 345
  • 2
  • 5
  • 14
14
votes
1 answer

HAProxy Loadbalancing TCP traffic

Using HAProxy, I'm trying to (TCP) load balance Rserve(a service listening in TCP socket for calling R scripts) running at port 6311 in 2 nodes. Below is my config file. When I run HAProxy, its statting without any issues. But when I connect to the…
Anand
  • 9,672
  • 4
  • 55
  • 75
14
votes
2 answers

How to implement callback mechanism in Rserve?

i want to know a simple way of implementing callback mechanism in Rserve for a java client . According to Rserve docs : Rserve provides no callback functionality. Your application could implement callbacks via TCP/IP and the R sockets but it is not…
sanre6
  • 797
  • 2
  • 11
  • 28
13
votes
1 answer

Connect to RServe from JAVA using authentication

I am running RServe from Server machine using cmd Rserve.exe --RS-conf Rserv.conf --RS-port 12306 Rserv.conf file has following content: pwdfile RserveAuth.txt auth required remote enable plaintext disable RserveAuth.txt has following contents: …
Akki
  • 1,221
  • 3
  • 14
  • 33
11
votes
1 answer

Calculations in R, visualisations in Tableau - how to properly integrate these two?

I've got a bunch of R scripts that read in a data from various sources, perform all the analyses needed and makes some visualisations. Now I need to pass the visualisation part over to Tableau and prepare the whole dashboard in the latter. From…
jakes
  • 1,964
  • 3
  • 18
  • 50
11
votes
1 answer

Rserve arguments: --save vs --no-save vs --vanilla

I am trying to understand the difference between the Rserve arguments --save, --no-save, and --vanilla. I don't see anything describing the effects of these in the documentation or any forums. Does anyone know exactly what these do? In OSX, I need…
lschult2
  • 588
  • 2
  • 5
  • 16
9
votes
3 answers

Load balancing R requests coming to RServe

I have 6 Linux box running RServe and serving same set of R Scripts. 192.168.0.1 : 6311 192.168.0.2 : 6311 ... ... 192.168.0.6 : 6311 I connect from java to these Rserve using REngine (Rserve Java Client). RConnection rServeConnection = new…
Anand
  • 9,672
  • 4
  • 55
  • 75
9
votes
4 answers

What is the relation between RStudio and RServe?

I'm new to R and I decided to put R on a machine I have and see if I can remotely run code that is on my desktop computer. While searching for "how to do" that, I came across the names "Rserve" and "RStudio". As far as I could tell, RServe is a…
vaulttech
  • 493
  • 1
  • 5
  • 15
8
votes
1 answer

Rserve connection fails

I am using WPS4R provided by 52north Up to 3 days ago everything was fine and WPS could connect to R by use of Rserve properly but now this connection can not be made. I uninstalled everything, including Apache Tomcat,R and Java JDK, and then…
Mona Eshraghi
  • 195
  • 2
  • 7
7
votes
1 answer

Integrating Rserve Into A Rails Application

This question is a follow-up to a question I posted earlier this year. Integrating R Statistical Package into Rails Application Based upon the response I received, I have landed on Rserve as the means to integrate R into my rails application. …
Mutuelinvestor
  • 3,384
  • 10
  • 44
  • 75
6
votes
2 answers

Rserve : ld: library not found for -lssl

I am getting an error while trying to install Rserve 1.8.6. I can successfully install 1.7.3 from CRAN. This is on Mac OS High Sierra. ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see…
1
2 3
15 16