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

R connection issues with relative path and executable jar

I am writing a Java application in IntelliJ IDE. The application uses Rserve() to connect to R and access scripts. First question is: At the moment, my R scripts are directly under my main java project folder. To access a R script, I create a…
novicegeek
  • 773
  • 2
  • 9
  • 29
0
votes
2 answers

Stopping RServe printing json on the console

I'm running into a very curious problem. I've an R code which doesn't contain any print statement (except my explicit calls to log the time taken) and yet the entire json gets dumped on to the "R console". This is causing a serious performance issue…
devak23
  • 419
  • 1
  • 4
  • 6
0
votes
1 answer

How to send a float/double array to R as a vector from JAVA through RServe

I'm using R with Java through Rserve, I want to use forecasting w.r.t ARIMA in R but the values/data which use to forecast is present in postgres DB. I'm also aware that I can use RPostgreSQL directly in R to get data from DB, but before sending to…
balu
  • 89
  • 1
  • 2
  • 11
0
votes
1 answer

Query system load from R

Is there a way from R to be able to query a Linux OS and determine the number of active processes and/or CPU utilization? For example, the top command returns useful information to answer this, however system in R doesn't return a value that I can…
Mark
  • 4,387
  • 2
  • 28
  • 48
0
votes
0 answers

plot graphics result for example association rules via "aruleViz" from java code using Rserve

I have written an R function, that connect to database, fetch some records, obtain association rule of the object via arules library and plot the rules using arulesViz. I save the R function in an script file, named…
aliakbarian
  • 709
  • 1
  • 11
  • 20
0
votes
1 answer

start Rserve from Rprofile.site

I want to start Rserve using Rprofile.site which look like this .First <- function(){ library(Rserve) Rserve(args="--RS-conf /usr/lib64/R/etc/Rserv.conf") source("/usr/lib64/R/etc/InvestorToolBox.R") } But for some raison when i…
user6062547
0
votes
2 answers

Rserve() error in the first instance of running a Java application

I am writing a Java application in IntelliJ IDE. The application uses Rserve() to connect to R and access scripts. I have a java script which sends a command to the shell to start Rserve(). The problem I am facing now is the first time when I run…
novicegeek
  • 773
  • 2
  • 9
  • 29
0
votes
2 answers

Unable to start Rserve from java in linux environment

This small code try to start Rserve from JAVA: import java.io.*; import java.util.*; class Test{ public static void main(String[] args) throws IOException, InterruptedException{ boolean debug = false; Process…
Gautam Kumar
  • 941
  • 2
  • 16
  • 37
0
votes
0 answers

Optmizing r to java call in rserve

I am facing a problem while performing optimization using lpSolveAPI in R and Java on a large dataset. I tried Rserve,RCaller,JRI,Renjin and found that Rserve is what actually suits my need. RCaller has a functionality that has allows to run all the…
Jijo
  • 611
  • 5
  • 18
0
votes
0 answers

R run old version from command OSX

I've got an application that relies on R for some scientific calculations. It is installed in OS X and R is in its default location (/Library/Frameworks/R.framework). The application needs to start Rserve (R CMD Rserve). This runs /usr/local/bin/R…
user3207838
  • 676
  • 1
  • 7
  • 15
0
votes
0 answers

What is folder (null).1001.1001

(null).1001.1001 What is this folder? Where does it come from? drwxrwxrwx 49 appusr appusr 4096 Jan 7 21:52 (null).1001.1001 I think it has something to do with Mr. Root impersonating Mr. AppUsr in a background task, but I posted to…
woodvi
  • 1,898
  • 21
  • 27
0
votes
1 answer

How to declare a global variable inside an Rscript and call it from Java

I have an Rscript myrscript.R , which is having below code. if(exists("e")==FALSE) { e = new.env() } myfun1<-function(file_path) { mydata<-read.csv(file_path) e$mydata1 =mydata return("firstfunction") } myfun2<-function() { e$mydata1 …
Jaishree Rout
  • 382
  • 5
  • 17
0
votes
1 answer

How to load and show jpeg using Rserve in Java(Eclipse)?

I'd like to rotate a jpeg in Eclipse using Rserve(). The code in R is like…
miata
  • 81
  • 6
0
votes
1 answer

Rserve - Eclipse & Java

Hi I am setting up rserve based on the instructions on this website. http://www.codophile.com/how-to-integrate-r-with-java-using-rserve/ However in eclipse I am getting an error when using 'eval' double d[] =…
Jordan
  • 15
  • 1
  • 4
0
votes
1 answer

R function not returning a value when accessed using Java

I am using Rserve to connect with R from within Java. I have a problem with using a library function in R only when I am accessing it through Java. Here are the details: In Java I have four float arrays. These are used as input for the…
novicegeek
  • 773
  • 2
  • 9
  • 29