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

How to make an upstart service to Rserve?

I need to start and keep running the rserve from R. I have these lines in my rserve.r file: library(Rserve) Rserve() So, I'm trying to do something like this in my upstart script: description "Rserve service" author "Valter Silva" start on…
Valter Silva
  • 16,446
  • 52
  • 137
  • 218
4
votes
3 answers

Run R script using JAVA program

I am new to R programming. I have created a simple R script and trying to run it using JAVA class, but I am unable to do it. I have tried by using Rserve as well as rJava. Using Rserve, code execution stopped after creating instance of "RConnection"…
Tiya
  • 215
  • 1
  • 4
  • 16
4
votes
1 answer

RServe share library code

Is it possible that processes spawned by RServe share some common libraries loaded once into memory? Imagine that I need to execute bellow code on 100 different RConnections concurrently. library(libraryOfSize40MB) fun() It means that I need about…
Przemek
  • 7,111
  • 3
  • 43
  • 52
4
votes
3 answers

Rserve fails to set up connection

Up to yesterday, I have been connecting Tableau with R through Rserve on my localhost. Today, when I try to make the connection again, Tableau complained: a error occurred during connection to localhost: 6311. No connection could be made because…
user3692959
  • 41
  • 1
  • 3
4
votes
2 answers

Rserve - Multiple instances on one server?

Is it possible to run multiple instances of Rserve on one server at the same time? For example 10 instances meaning 10 separate R workspaces listening on different ports via Rserve on the same machine?
Dirk Calloway
  • 2,569
  • 4
  • 23
  • 34
4
votes
2 answers

Deploying an R app with a GUI

I developed an R application and I want to deploy it. Currently the application consists of a set of functions to be run from the command line, like an R package. In order to deploy it, I am thinking of repackaging R Portable adding the necessary…
antonio
  • 10,629
  • 13
  • 68
  • 136
4
votes
2 answers

How to configure FastRWeb to use RServer built-in web server

I'm new to RServe (and FastRWeb). I installed RServe 1.7.0 as I want to use its built-in webserver. As I already have apache running on this machine I want to run RServe/FastRWeb on a custom port. I did cd /usr/local/lib/R/site-library/FastRWeb;sudo…
Darren Cook
  • 27,837
  • 13
  • 117
  • 217
4
votes
4 answers

Assigning an multi-dimensional array from Java to R through Rserve

I am using Java/R/Rserve for a project. I am facing the problem of transferring a multi-dimensional array from Java into R workspace for calculation. So far, the assign method of the RConnection object only allows the following to be passed: byte[],…
Linh B Ngo
  • 41
  • 1
  • 2
3
votes
0 answers

How to resolve "Error: long vectors not supported yet: qap_encode.c:36"?

I am trying to connect java with R using Rserve Java: 1.8.0_151 R: 3.5.0 OS: Mac 10.13.4 HighSierra To connect R with Java, I typed the following on RStudio install.packages("Rserve") library(Rserve) Rserve(args="--no-save") things went smooth and…
KingJinho
  • 683
  • 1
  • 6
  • 23
3
votes
0 answers

SOCK_ERROR: bind error #48(address already in use), i already detached Rserve package, but it still shows this error

i am trying to connect R with java i didn`t use Rstudio and i went through the process on Macbook Terminal here's what i did R library(Rserve) Rserve(args="--no-save") and after this, it shows Rserv started in daemon mode. SOCK_ERROR: bind error…
KingJinho
  • 683
  • 1
  • 6
  • 23
3
votes
3 answers

Unable to write data to csv using Rserve

I am able to perform Remote command execution and function calling in R script through Rserve in my Java application. But when my function is trying to save a dataframe in a csv file using write.csv(MyData, file = "MyData.csv") They MyData.csv…
Madhavi Jouhari
  • 2,282
  • 5
  • 25
  • 40
3
votes
2 answers

Running rscript from java doesnt show any result

I am using Rserve to call r script from java. The program runs and terminates but doesn't output what i want. In my R script i have multiple print statement so in theory when my java program runs it should print those statement. But my java program…
R. Haroon
  • 103
  • 1
  • 13
3
votes
1 answer

stop or restart the R CMD Rserve in ubuntu

Actually I want to stop the Rserve or restart it I have read this How to close Rserve from the command line but I think if I kill it, it will shut it down and I cannot start it again. I only want to refresh it so that it will recognize the…
nik
  • 2,500
  • 5
  • 21
  • 48
3
votes
1 answer

executing R scripts from golang using Rserve and Roger

how can i execute a function from a R script via Rserve from golang using Roger... If a function requires no arguments or just one argument, it works fine.. The problem comes when the function take two arguments. Golang //using backticks works fine…
Harris
  • 65
  • 7
3
votes
1 answer

Java.net Connection Reset using Rserve

I am getting an exception while trying to run a R program via Java. The connection is being established but then the error is being thrown while the evaluation of the R code starts. Rconnection connection = new…
Vini
  • 1,978
  • 8
  • 40
  • 82
1 2
3
15 16