rserve

Using node-rio from Meteor Server Side Route

可紊 提交于 2019-12-23 02:42:33
问题 I'm trying to access an Rserve server using Meteor through a server side route to call R code. The Node.js module that allows access to Rserve is node-rio I have used the Async.wrap function in the meteorhacks:npm Meteor package to wrap the "evaluate" method. When I try to access the route path "/rio" in a browser, I get "1" written to the console log, which is correct for the evaluation of the command "1" in R, but Chrome hangs with the message "Waiting for localhost". It doesn't proceed to

Integrating R and its graphics with existing Javascript/HTML Application

[亡魂溺海] 提交于 2019-12-22 07:50:08
问题 I have an existing Javascript/HTML Application. I wanted to use power of R Programming 's scientific computing and graphics. My aim is to, Send some data from Javascript app. Call predefined R functions with the data input. Get the output get the output in the form of both text and graphics. Display it in the HTML page. How to achieve this, Should I run R continuously, use something like web sockets and connect to R? If doing How to pass R scripts to execute and get the output pack? There is

Integrating R and its graphics with existing Javascript/HTML Application

[亡魂溺海] 提交于 2019-12-22 07:50:07
问题 I have an existing Javascript/HTML Application. I wanted to use power of R Programming 's scientific computing and graphics. My aim is to, Send some data from Javascript app. Call predefined R functions with the data input. Get the output get the output in the form of both text and graphics. Display it in the HTML page. How to achieve this, Should I run R continuously, use something like web sockets and connect to R? If doing How to pass R scripts to execute and get the output pack? There is

How to start Rserve automatically from Java?

血红的双手。 提交于 2019-12-20 15:25:46
问题 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, which looks something like this: R library(Rserve) Rserve() After doing this, I can easily access all the function in R without any errors. However, since this Java code would be bundled as an executable file, so is there a way that Rserve() is

Cannot open file '', reason No such file or directory

隐身守侯 提交于 2019-12-20 06:39:12
问题 I've run into the following problem, which sometimes happens when running the code in R under Rserve. So far I was unable to replicate this. I first create a PDF with pdf(file=paste(output.dir, "/dates_",name,".pdf",sep=""),width=6.25,height=9,title="Breakdown Dates:") and then plot the data: plot(time, data1, xlab="", ylab="") Most of the time it works, when it fails I get the error: cannot open file '', reason No such file or directory I've rerun this and debugged multiple times and all is

RServe share library code

大城市里の小女人 提交于 2019-12-19 03:35:59
问题 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 3.9GB of memory just to load library. I would prefer to load library once and then execute fun() one hundred times, so that I can run this on cheap host. Maybe this is helpful? https://github.com/s-u/Rserve/blob/master/NEWS#L40-L48 回答1: It is

how to connect to Rserve with an R client

梦想的初衷 提交于 2019-12-18 13:36:55
问题 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 = "localhost", port 6311) I then try to print hello world by: RSeval(c, name) But it does not work. I get: Error in RSeval(c, name) : object 'name' not found What am I doing wrong here? 回答1: I got some information from the author of Rserve. The variable

How can I shut down Rserve gracefully?

回眸只為那壹抹淺笑 提交于 2019-12-18 11:27:50
问题 I have tried many options both in Mac and in Ubuntu. I read the Rserve documentation http://rforge.net/Rserve/doc.html and that for the Rserve and RSclient packages: http://cran.r-project.org/web/packages/RSclient/RSclient.pdf http://cran.r-project.org/web/packages/Rserve/Rserve.pdf I cannot figure out what is the correct workflow for opening/closing a connection within Rserve and for shutting down Rserve 'gracefully'. For example, in Ubuntu, I installed R from source with the ./config -

Plot() error when using REngine.Rserve

a 夏天 提交于 2019-12-18 07:12:34
问题 I'm now work on a project which wants to use org.rosuda.REngine.Rserve to use facilities of R by C#. I have a particular problem that when I run the following code in C# client side: c.eval("pdf(file=\"plots.pdf\", width=11, height=8.5)"); c.eval("plot(1,2)"); An error occour which said Error in plot.new():cannot open file '', reason No such file or directory But I checked that the file "plots.pdf" has already been created successfully by "pdf.." function. In R semantics, the successive plot(

connection of java and R with Rserve

天涯浪子 提交于 2019-12-13 16:25:49
问题 I have java application for analysis for which need to have R installed. I have R also installed in my system and I installed Rserve library. But when I am trying to implement command Rserve() in my R console, following error is coming: SOCK_ERROR: bind error #98(address already in use) I have installed all the prerequisite, along with Rserve, needed for my java application and I think these are working fine except Rserve. Can anybody help me out from this predicament? The tool name is