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
6
votes
2 answers

Integrating R and its graphics with existing Javascript/HTML Application

I have an existing Javascript/HTML Application. I wanted to use power of R Programming's scientific computing and graphics. My aim is to, Send some data from Javascript app. Call predefined R functions with the data input. Get the output get the…
Manoj G
  • 1,776
  • 2
  • 24
  • 29
6
votes
1 answer

How to close Rserve from the command line

this question relates to close connection and perhaps also to this close Rserve. However, in the later case there are connections open and in the first case the answer does not specify how to "kill" the server. It is important to say that I am new…
Javier
  • 1,530
  • 4
  • 21
  • 48
6
votes
2 answers

Rserve server: how to terminate a blocking instance (eval taking forever)?

I need to perform R evals in a multi-threaded way, which is something Rserve provides quite well. But, if the eval of one instance takes too long, I need to be able to shutdown the instance which is computing the blocking eval. As far as I tested,…
Gauthier Boaglio
  • 10,054
  • 5
  • 48
  • 85
5
votes
1 answer

connection to Rserve from RSclient over TLS fails 95% of the time

I am having an issue, where I connect to Rserv from RSclient and the connection doesn't work 95% of the time, when making a TLS connection. It literally fails most of the time and >sometimes< it just works. however, when I make a connection without…
Tomas Hrubovcak
  • 316
  • 2
  • 10
5
votes
0 answers

svSocket evalServer skip waiting process

Problem Version 1, Can we make pr_fun process it's retun without waiting for ch_fun() to finish ch_fun <- function() {Sys.sleep(10)} pr_fun <- function() {ch_fun(); return("Done")} pr_fun() Proble Actual Version R session 1 as svSocket…
anonR
  • 849
  • 7
  • 26
5
votes
2 answers

How can i connect pyRserve with Python

i need to connect pyRserve in iPython, but there is an error when i try to connect it. This is the error. conn = pyRserve.connect() And this is what i get: RConnectionRefused: Connection denied, server not reachable or not accepting…
5
votes
1 answer

Error executing library in Rserve from Java

When I start Rserve from RStudio and try to connect to Rserve using RSclient as in the code below: #Loading Libraries library(Rserve) library(RSclient) #Loading Rserve Rserve(args='--no-save --slave') #Open Connection to Rserve and Executing…
Murta
  • 2,037
  • 3
  • 25
  • 33
5
votes
3 answers

Error while starting Rserve on Mac OS X Maverick

I am trying to start Rserve using Rserve() command in R console but I am getting an error as /Library/Frameworks/R.framework/Resources/bin/R: line 141: exec: sh: not found I have Mac OSX Maverick. I installed R version 3.1.0. After this I tried to…
user2966197
  • 2,793
  • 10
  • 45
  • 77
5
votes
1 answer

Capturing HTTP POST contents with FastRWeb?

Is anyone aware of how to capture POST variables (or other parts of the HTTP request) using FastRWeb? FastRWeb is a tool which enables you to run r scripts in a cgi environment. Here is an example program using FastRWeb. run <- function(n = 100,…
vancan1ty
  • 563
  • 1
  • 4
  • 16
5
votes
1 answer

Calling ggplot from Rserve. Blank png image of 1KB

I have been working with r,rserve and ggplot of late. This piece of code when executed in R console directly renders a chart with two bars as…
user2537384
  • 96
  • 1
  • 4
5
votes
2 answers

Sourcing r-files only once on Rserve

I have written a small Java client which does some calculations on an Rserver. For this purpose, there are functions.r- and libraries.r files on the server side, which have to be sourced, before the actual calculation can be done. Currently I load…
Beasterfield
  • 7,023
  • 2
  • 38
  • 47
4
votes
0 answers

RserveException: eval failed eval failed error on Databricks notebook - No error code or no explanation

I am running an R script on databricks notebook for multiple datasets (around 500). I ordered datasets by file size to avoid errors and run the max amount of files within the shortest time because the script has large time complexity. I was able to…
Salih K
  • 41
  • 5
4
votes
0 answers

How To Limit the Amount of RAM RServer/RSession Uses on Windows

I need to limit the amount of RAM RServer/RSession uses on our Windows 2012 server. I am a system admin who has two users running R Studio on our Server. Each R Studio spawns one or more RSession.exe processes. Sometimes one of the RSession.exe…
Robbie
  • 71
  • 4
4
votes
1 answer

Connecting to Rserve with WebSockets using javascript

I have Rserve installed on my Ubuntu server. I would like to interact with it using javascript. I know that rserve npm "provides a javascript implementation of the websocket Rserve protocol" but it do not seems to be maintain anymore and I would…
Wistar
  • 3,770
  • 4
  • 45
  • 70
4
votes
1 answer

How to get data.frame in Java using Rserve

I use Twitter anomaly detection algorithm in my project. For this purpose I use Rserve library to run R code in my Java application. My Java code: RConnection connection = new…
Yakiv Holovko
  • 421
  • 2
  • 5
  • 11
1
2
3
15 16