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

Can't find certain function when calling R within java

I'm trying to use R within Java, specifically within Processing. I want to use the readPNG function, but when I try to, R displays an error readPNG function can't be found. This is extremely weird because I have the png library active and if I try…
Diego Aguado
  • 1,604
  • 18
  • 36
0
votes
1 answer

How to pass a file path to Rscript called 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
0
votes
1 answer

Error while executing R commands in Java for accessing data from PostgreSQL and doing computation

I am writing a Java code where in I am trying to get the data from PostgreSQL and doing simple computation on it(calculating median). First I am loading the RPostgreSQL library from Java code itself and then loading the driver and establishing the…
user2966197
  • 2,793
  • 10
  • 45
  • 77
0
votes
1 answer

Handling empty R dataframe on JSP/Rserve web page

Using a JSP web page and Rserve, I am getting data from a MySQL database and using an R dataframe to store the data. This works fine and plots perfect. However, if the db query returns nothing the dataframe is then empty and it throws an error when…
Dom Abbott
  • 1,157
  • 2
  • 8
  • 11
0
votes
1 answer

Using R variable in SQL Query

I am using RServe and SQL in Java to get data from a database and plot the results in and R plot. This is working fine but now I need to use a variable in the SQL query. In PHP I know you just need to close the statement, add the variable and the…
Dom Abbott
  • 1,157
  • 2
  • 8
  • 11
0
votes
1 answer

How to use Rserve with JSP on Tomcat? (Windows 7)

I am trying to write a web page using JSP which can talk to R via Rserve. I have installed R and Rserve and both are running (I have checked in task manager). What I need to to do now is make a connection between the two. I have found examples of…
Dom Abbott
  • 1,157
  • 2
  • 8
  • 11
0
votes
0 answers

How to Shutdown Rserve(), running in DEBUG

I have started Rserve() from within RStudio on my Mac in debug mode with the following: Rserve(debug=TRUE,args="--no-save") And as a result, I get the message: Note: debug version of Rserve doesn't daemonize so your R session will be blocked until…
0
votes
2 answers

RServeCLI - Issue : RserveCLI2.RserveException

I need some help on what may be a simple issue. I am trying to access R using a simple .Net /C# Console application. I have installed the program R on a virtual Server which use Ubuntu 14.04 LTS as it's OS. I have also installed the package Rserve…
0
votes
1 answer

pyRserve sapply in R environment not working as expected

I installed RServe in R and pyRserve in Python. Both are working great. I followed the documentation https://pythonhosted.org/pyRserve/manual.html, and things are working well. However, when I tried to run the example related to sapply, I get the…
Chris
  • 589
  • 4
  • 11
0
votes
1 answer

How to pass data from Java code to R code periodically

I have java code which is collecting about 100 events per minute. I have to pass these events to R code (in turn R code may call back to my java code). I donot like to send them in batches and would like to hand over the messages to R code as soon…
kashili kashili
  • 955
  • 4
  • 15
  • 31
0
votes
1 answer

End of data error using PyRserve

I am calling an R script file from python using pyrserve. I have rserve running. At arbitrary points in the R script, pyrserve gives an error and quits: Traceback (most recent call last): File "scriptV2.py", line 272, in
user1971988
  • 845
  • 7
  • 22
0
votes
1 answer

ImportError when trying to import package pyRserve

I did an easy_install onto Windows 7 of the pyRserve package but when I run import pyRserve I get the following Import Error. I'm using Python 2.7.5. Any suggestions? Traceback (most recent call last): File "", line 2, in File…
Dirk Calloway
  • 2,569
  • 4
  • 23
  • 34
0
votes
1 answer

Several clients don't connects with RServe

I'm trying to connect 2 clients with RServe, but works only the first one. And the second one just waiting for disconnect of first (there is a waiting to receive IDString from server). How can I solve this problem? I want to make them work together.
Geralt
  • 1
  • 1
  • 4
0
votes
1 answer

Return name:value pairs from R

I'm writing a Java program which uses Rserve to get results back from R. I need to calculate frequencies of the elements in an array. For example, array = [A, A, B, C] I need R to return A 2 B 1 C 1 But when I used Rconnection c = new…
Lin
  • 25
  • 3
0
votes
1 answer

How to pass arraylist from Java to R and do data quality check?

I'm using Rserve to call R functions using Java code. My project requires me to receive a vector and pass it to R. For example, I defined ArrayList data = new ArrayList(); data.add("10.0"); data.add("11.0"); …
Lin
  • 25
  • 3
1 2 3
15
16