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
3
votes
1 answer

Parallel Programming in pyRserve using celery

I have a data-frame consisting of Time Series. Date Index | Time Series 1 | Time Series 2 | ... and so on I have used pyRserve to run a forecasting function using R. I want to implement parallel processing using celery. I have written the worker…
3
votes
2 answers

How to start Rserve automatically from Java?

I am writing a Java application in IntelliJ IDE. The application used Rserve package to connect to R and perform some functions. When I want to run my code for the first time, I have to launch R in the command line and start the Rserve as a daemon,…
novicegeek
  • 773
  • 2
  • 9
  • 29
3
votes
1 answer

Error when calling Rcpp function from Tableau. How to interpret and debug Rserve logs?

I'm having a lot of trouble connecting an R function I wrote to Tableau. The function relies on Rcpp. In R, if I call prob_1_beats_2(1, 2, 3, 4) it works just fine. However, when I try to connect to Tableau using Rserve, I get this error: Error in…
Frank P.
  • 503
  • 5
  • 21
3
votes
1 answer

Rserve connection from local R client to Rserve host on AWS Server

Currently trying to connect to an Amazon AWS server via IP address on port 6311. I've set up Rserve as a daemon on the AWS server and have checked that it is in fact listening on port 6311 by calling the netstat command, but when I run the follow…
3
votes
1 answer

Finding Rserve Rconfig file on Ubuntu 13.10

The docs say it should be located in /etc/Rserv.conf which it is not in my case using Ubuntu 13.10. When I run sudo find / 'Rserv.conf' or sudo find / '*Rserv.conf' it returns no such file. However Rserve is working fine. I'm pretty new to linux so…
Dirk Calloway
  • 2,569
  • 4
  • 23
  • 34
3
votes
3 answers

R CMD Rserve: not found on Mac OS X

Anyone know running the command line for Rserve on Mac OS X R CMD Rserve --no-save generates a /Library/Frameworks/R.framework/Resources/bin/Rcmd: line 62: exec: Rserve: not found (works fine on Linux) however, starting it from an R console,…
metalaureate
  • 7,572
  • 9
  • 54
  • 93
3
votes
1 answer

How do you deploy Rserve on Heroku/Node.js

I want to deploy Rserve on Heroku, using the https://github.com/albertosantini/node-rio API wrapper. This works well on my local environment, but I have no clue how to deploy Rserve on Heroku. Could someone give me some instruction?
metalaureate
  • 7,572
  • 9
  • 54
  • 93
3
votes
1 answer

how to connect to Rserve with an R client

I'm not sure if I am doing this right. In tab 1, I open R, then I execute Rserve(port = 6311) inside the R session. I load the variable "name = Hello World" In tab 2, I open R, then I try to connect to Rserve. I do this by: c = RSconnect(host =…
user1103294
  • 423
  • 3
  • 6
  • 16
3
votes
1 answer

R interactive and batch mode and the heIp browser

When running R in 'batch mode', the interactive flag is set to false, which prevents any sort of user prompts that would interrupt the process in the context of an embedded/batch setting. See: R -e 'interactive()' Some holds when using Rscript. The…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
2
votes
2 answers

Rserve Exception: Handshake failed

I am new to language R and was trying a simple program in java using RConnection but it is giving this exception org.rosuda.REngine.Rserve.RserveException: Handshake failed: expected 32 bytes header, got -1 at…
Shashank gaur
  • 55
  • 1
  • 7
2
votes
1 answer

Using R package pmultinom with PyRserve

I am trying to utilize the R package pmultinom in Python by using pyRserve, with numbers that are imported to the code. I am having the following error: REvalError: Error: object 'pmultinom' not found. import pyRserve num1 = 1 num2 = 2 num3 = 3 num4…
user156220
  • 23
  • 2
2
votes
1 answer

How to pass a vector from tableau to R

I have a need to pass a vector of arguments to Rserve from tableau. Specifically, I am using IRR calculations in R (on Rserve), and i want to pass vector of cash-flows that are as columns in my table (instead of rows/measure). So, i want to collect…
toing
  • 466
  • 1
  • 3
  • 19
2
votes
1 answer

Running R script from java - Rconnection eval exception

How can I solve this problem? I tried to empty cache, reinstall R and Rscript. connection = new RConnection(); String path = "source('" + rScript.getFile().getAbsolutePath() + "')"; connection.eval(path); // error in this line…
2
votes
0 answers

Invoke R script on AWS Lambda from NodeJS

As a result of several hours of unfruitful searches, I am posting this question. I suppose it is a duplicate of this one: How do you run RServe on AWS Lambda with NodeJS? But since it seems that the author of that question did not accomplish…
Dauta
  • 39
  • 1
  • 4
2
votes
2 answers

Passing Parameter to Rserve using terminal

I have a R code, which has a trained machine learning model. Now I want to get prediction for new data. Current method: Script code.R '[{"x1" : "1011", "x2" : "1031", "x4" : "0.65"}]' I would get the answer back, the problem was it took too much…
Anubhav Dikshit
  • 1,729
  • 6
  • 25
  • 48