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
0 answers

How does multiple write access work with ff files?

We are using R 3.3.1 and the packages ff and Rserve under Win 7 to write to an ff file on some server from separate Rserve processes on different hosts. The Rserve processes are constantly performing tasks and are updating the central ff file at the…
tscherg
  • 1,032
  • 8
  • 22
2
votes
1 answer

How to run rserve in non-daemon mode?

I've an use case where I need to run rserve in non-daemon mode. I tried "daemon no" and "daemon disable" in the rserve.conf file and also --silent to the R CMD command line invocation but that didn't help. Thanks
Sunil
  • 169
  • 1
  • 8
2
votes
0 answers

spark streaming slow checkpointing when calling Rserve

I wrote a spark streaming application in Java. It reads stock trades off of a data feed receiver and converts them to Tick objects, and uses a microbatch interval, window interval and sliding interval of 10 seconds. A JavaPairDStream
Mark
  • 21
  • 2
2
votes
1 answer

R script for ARIMA model in Tableau

I am new in Tableau, I am trying to write R Script for ARIMA model but I am getting error. I wrote this code SCRIPT_REAL(" library(forecast) data <- ts(.arg2,start=c(2003,1),frequency=12); ARIMAfit <-…
anindya
  • 61
  • 1
  • 12
2
votes
1 answer

R integration with Java

I am using some R script in my Java program. To integrate R with Java, i found two techniques RJAVA and RSERVE. I am not able to understand which one should i use and how much these two are different. I think RSERVE just talks to R server via…
2
votes
2 answers

How to return a vector when connecting R with Tableau?

I'm trying to return a vector through a Tableau calculated field. According to link below, Tableau can either receive a single value or a vector using connections to R through a calculated field. http://community.tableau.com/docs/DOC-5313 see:…
Ryan Chase
  • 2,384
  • 4
  • 24
  • 33
2
votes
0 answers

fileio disable Rserve

I would like to prevent programs using Rserve from being able to navigate my file system, read/write files, etc. Based on the Rserve documentation on the config file, it looks like this should be possible using the "fileio disable"…
msolbrig
  • 91
  • 1
  • 4
2
votes
2 answers

Avoid loading libraries on multiple run of R script

I need to run (several times) my R script (script.R), which basically looks like this: library(myLib) cmd = commandArgs(TRUE) args=myLib::parse.cmd(cmd) myLib::exec(args) myLib is my own package, which load some dependencies (car, minpack.lm, plyr,…
2
votes
2 answers

How to export data from R script within Java using Rserve?

I am using Rserve to access an R script through my Java project. The java code asks for a user input to enter the file location and stores in a String variable. This variable is then passes through to the R function which should read the file…
novicegeek
  • 773
  • 2
  • 9
  • 29
2
votes
0 answers

How does Rserve/handle logging

I am trying to find out how R and Rserve handle logging. I am running R on daemon mode using Rserve ( connect to Java code). Can the logging feature be turned off
boston
  • 21
  • 3
2
votes
4 answers

Where is the Rserve Config file located on Windows?

I'm using a Windows 7 x64 machine with R-3.1.0. I installed the Rserve package through Rstudio. The start of Rserve is successful with the following code in Rstudio: library(Rserve) Rserve() I got the following output: Starting…
user959704
2
votes
1 answer

connection of java and R with Rserve

I have java application for analysis for which need to have R installed. I have R also installed in my system and I installed Rserve library. But when I am trying to implement command Rserve() in my R console, following error is coming: SOCK_ERROR:…
mandy-jubl
  • 77
  • 1
  • 7
2
votes
3 answers

R dataset connection to tableau

Recently tableau gave the functionality of R connection in their release 8.1. I want to know if there is any way i can call an entire table created in R to tableau. Or an .rds object which contains the dataset into Tableau?
Bflat
  • 47
  • 1
  • 10
2
votes
0 answers

Exposing java objects to R

I want to use R from Java to do some analysis. I have some heavy data objects in Java that I would like to expose to R for the analysis, but not sure how this is done best. I am experimenting with Rserve and I am just building up dataframes and…
Jens Nielsen
  • 505
  • 1
  • 4
  • 5
2
votes
1 answer

Cannot open file '', reason No such file or directory

I've run into the following problem, which sometimes happens when running the code in R under Rserve. So far I was unable to replicate this. I first create a PDF with pdf(file=paste(output.dir,…
Datageek
  • 25,977
  • 6
  • 66
  • 70