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
1
vote
2 answers

R, Python and pyRserve - multi-threaded examples?

I have a Python script set up where it instantiates Rserve, sets up a few R scripts and functions and then runs some data against the functions. However, I have been unable to create a multi-threaded instance of this same process. My core issue is…
Unknown Coder
  • 6,625
  • 20
  • 79
  • 129
1
vote
0 answers

How do you run RServe on AWS Lambda with NodeJS?

While this question is quite open-ended, I'm generally trying to follow this excellent post here: https://aws.amazon.com/blogs/compute/analyzing-genomics-data-at-scale-using-r-aws-lambda-and-amazon-api-gateway/ which describes setting up R to run…
Will Lovett
  • 1,241
  • 3
  • 18
  • 35
1
vote
1 answer

Change internal data with Rserve

I have a large data.frame loaded to memory in an R instance on one machine, and I'm using Rserve to allow access to this data from remote clients. I would like to be able to remotely make changes to the data.frame, like adding a column or changing a…
Assaf Wool
  • 64
  • 4
1
vote
1 answer

How to send argument dynamically to Rserve in R using rserve-js from node js?

var express = require('express'); var router = express.Router(); var session = require('express-session'); let Rserve = require("rserve-js"); var disease="fever"; var dataz="cough"; enter code here let client = Rserve.connect("localhost",…
naruto
  • 327
  • 1
  • 11
1
vote
1 answer

How to get values from a Java object (REXP Object)?

I'm trying to parse a REXP output. I've converted the result into a java object. However I'm not able to get the value inside the object. The object m contains: [1, 1, 3, 1, 3, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,…
user3616977
  • 527
  • 2
  • 5
  • 14
1
vote
1 answer

Using Rserve with java and want to calculate t.test. Cant get result back to java

Got this problem with a formula in Rserve. I tried with double and int but that didn't work either. It's a block of text that I want back from R. Describing the CI. But the result doesn't seem to come back to the java application. I have tried the…
Clang
  • 11
  • 1
  • 2
1
vote
1 answer

Error during cross platform communication between Node.js and R using Rserve on AWS. Error:connect ETIMEDOUT

I want to pass my R script from my node.js application to an Amazon EC2 instance running Ubuntu and Rserve; which would then execute and evaluate the R script and return the processed output back to my node.js application. I found two reliable…
Nick_inaw
  • 145
  • 3
  • 13
1
vote
1 answer

R.dll file missing

I have installed R(x64) in my system with extra libraries. I have setup the path in environment variables for both R as well as Rserve(one of the few extra library that was downloaded) No when I open up my command prompt and enter R, it accepts the…
Raj Sharma
  • 21
  • 2
  • 8
1
vote
1 answer

Executing Rscript from Java

I am trying to execute a R script from Java file. Java code public static void main(String a[]) { RConnection connection = null; try { /* Create a connection to Rserve instance running on default port * 6311 */ …
Vini
  • 1,978
  • 8
  • 40
  • 82
1
vote
0 answers

How to draw a family tree in Tableau with R?

I have a family tree which I can draw directly in R. However I'd like to load the source data in Tableau and use the package directly from within Tableau to display the family tree. This is the data: parent child erik megan erik marina erik …
1
vote
1 answer

Differ in Results between running and debugging the JAVA Program with Embedded R code

The Code is below: RConnection connection = new RConnection(); String load_pkgs = "require(Rserve); require(forecast)"; connection.eval(load_pkgs); String strx1 = "xData =…
balu
  • 89
  • 1
  • 2
  • 11
1
vote
1 answer

Rserve - Remote connection failed

I am trying to connect to R from my php application using Rserve.I can successfully execute R commands in my local R server. But when I try to connect to a remote server, it is showing unable to connect [0]: No connection could be made because the…
julika Zen
  • 357
  • 6
  • 22
1
vote
1 answer

Rserve .http.request function without FastRWeb

I'm trying to set up nginx directly in front of Rserve (HTTP). The Rserve 1.7.0 release notes (http://www.rforge.net/Rserve/news.html) suggest that you need to define the .http.request worker function. Every example I've come across suggests…
1
vote
0 answers

could not find function "randomForest" error while Calling the R script in java. But working fine in R

RConnection connection = null; /* Create a connection to Rserve instance running on default port * 6311 */ try{ /* Create a connection to Rserve instance running * on default port 6311 */ connection = new RConnection(); /*…
1
vote
1 answer

java.lang.OutOfMemoryError: Java heap space in rserve java

I am running an Rscript from Java which is having two functions one will return a data frame and other will return the column name of the data frame returned by function 1. The code is running fine for 400 MB data but when I am testing with more…
Jaishree Rout
  • 382
  • 5
  • 17