Questions tagged [rapache]

rApache is a project supporting web application development using the R statistical language and environment and the Apache web server

rApache is a project supporting web application development using the R statistical language and environment and the Apache web server. The current software distribution runs on UNIX/Linux and Mac OS X operating systems. Apache servers with threaded Multi-Processing Modules are now supported, but the the Apache Prefork Multi-Processing Module is still recommended (refer to the Multi-Processing Modules chapter from Apache for more about this).

The rApache software distribution provides the Apache module named mod_R that embeds the R interpreter inside the web server. It also comes bundled with libapreq, an Apache module for manipulating client request data. Together, they provide the glue to transform R into a server-side scripting environment.

Another important project that's not bundled with rApache, but plays an important role in server-side scripting, is the CRAN package brew. It implements a templating framework for report generation, and it's perfect for generating HTML on the fly. It's syntax is similar to PHP, Ruby's erb module, Java Server Pages, and Python's psp module. brew can be used stand-alone as well, so it's not part of the distribution.

Project home page : http://rapache.net/index.html

68 questions
0
votes
1 answer

Problems creating plot with boxcox using rapache module function

I'm trying to create a plot using boxcox function from package MASS. but it's creating an rapache error. The r code: <% csvDF<- read.csv(GET$name1, header=TRUE) a<-lm(csvDF[,GET$col_variable]~1) require(MASS) filename1 <-…
yoni and tszi
  • 19
  • 1
  • 3
0
votes
1 answer

What is the right way to pass value from php to r

I'm trying to pass a variable value from my php code to the r processing environment. for example: <% print (val) %> Obviously this doesn't work. What is the right way to do it? Thaks, Yoni. Update I'm using rapache. It works,…
yoni and tszi
  • 19
  • 1
  • 3
0
votes
1 answer

How to change the favicon of an OpenCPU application?

I would like to add a custom favicon to my OpenCPU app. Although I manually set the favicon to be a custom image, it gets override by the default cloud icon from OpenCPU.
zolastro
  • 918
  • 12
  • 29
0
votes
1 answer

Disable directory listing in OpenCPU

I have been trying to disable directory listing in OpenCPU so our users cannot see the resulting directories and files in the http://server/ocpu/tmp/ directory. I have followed Apache's Directory Listing Configuration and deleted every mention of…
Jaime Campos
  • 3
  • 1
  • 1
0
votes
1 answer

Using plots within rApache

I'm working with rApache for displaying encapsulated plots that were created in R. Right now there's only one problem that I have to face. If there's only nest R code within the document, the HTML file get's rendered as some kind of single png image…
Mayak
  • 533
  • 1
  • 5
  • 17
0
votes
1 answer

Error in POST$pname : object of type 'closure' is not subsettable in rapache

we are working on RApache, we are sending the form argument from .html file which configured to brew. _______________________(one.html)_______________
0
votes
1 answer

Rapache & R for leaflet

I'm trying to make a webpage with Rapache and "Leaflet for R". The main reason I did install Rapache is to use R inside of a html page (with brew). But, I cant figure out how to return my map inside the html page without saving it as a html extern…
KingOfBabu
  • 409
  • 3
  • 21
0
votes
1 answer

Rapache on debian wheezy doesn't work with R 3.1.2

its been a long time that I'm trying to install rapache on debian. I did follow this tutorial : http://blog.binfalse.de/2011/05/28/r-for-the-web/ and I made it work but with a old R (1.2.5) and I did repeat the installation exactly the same way but…
KingOfBabu
  • 409
  • 3
  • 21
0
votes
0 answers

How to Keep R session alive between several web pages

I am Using R integrated with PHP web application. I am using exec command that runs my R script, each time I run a the script rscript need to load a library which takes 10 seconds to load. making the response of the request time taking. Is there…
0
votes
2 answers

RODBC query returns results from Windows, but not from Linux

I have a R script that fetches results from a SQL query from R studio on windows, but not Rapache on linux. My two connection strings are: channel =…
Justin Dearing
  • 14,270
  • 22
  • 88
  • 161
0
votes
1 answer

Use MySQL database query results to plot R graph using RApache and Brew

I am trying to plot a graph using R which is populated by MySQL query results. I have the following code: rs = dbSendQuery(con, "SELECT BuildingCode, AccessTime from access") data = fetch(rs, n=-1) x = data[,1] y =…
Dom Abbott
  • 1,157
  • 2
  • 8
  • 11
0
votes
1 answer

rApache module in Apache error

I'm using ubuntu 13.10 with Apache2 , PHP5 and MySQL I'm trying to add rApache module in Apache to work as a server R. I configured my rapache exactly how this turorial shows . http://binfalse.de/2011/05/r-for-the-web/ One file is created…
perondi
  • 165
  • 1
  • 3
  • 8
0
votes
1 answer

Is it possible to install rApache on tomcat 6.0?

I've followed all over the instruction provided in the below website. rApache.net. mod_R.so is installed and I've configured below things in the sites-enabled folder. #rApacheInfo SetHandler r-info …
user3206082
  • 431
  • 9
  • 18
0
votes
0 answers

What is the simplest way to get results from R?

lets say i have these files normal.R //plot normal distribution from userData //save image to disk //return json with filename controller.php $functionId = $_GET['functionId'] switch($functionId){ case 1: //call normal.R with $_POST['userData']…
user3093283
  • 323
  • 1
  • 2
  • 5
0
votes
4 answers

Using summary.lm function in rapache

I have installed rapache and I am trying to fit a linear model inside the R script file. I have configured the RFileHandler in the http.conf. When I am trying to invoke the summary(model) it is giving me a segment fault error ( i see this in the…
Bharani
  • 781
  • 1
  • 8
  • 18