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
1
vote
1 answer

RApache config problem

My sysadmin installed RApache for me on our 64 bit Solaris box. I can access the RApacheInfo page here, indicating that the module was successfully installed. There is the following entry in the httpd.conf:
dnagirl
  • 20,196
  • 13
  • 80
  • 123
1
vote
1 answer

Installing R and RApache in XAMPP for Windows

How can I get R and RApache installed in XAMPP for Windows? I'm new to XAMPP, unix, and server environments. I've googled around but can't find much on putting this PHP, XAMPP, Windows and R combination together. I'm trying to write a webpage that…
newbie
  • 11
  • 2
1
vote
3 answers

How do I uninstall rapache?

I want to uninstall rapache, make uninstall doesn't seem to do anything and a look at the rapache documentation and a google search turns up nothing. Any help would be great
alan
  • 391
  • 1
  • 4
  • 8
1
vote
1 answer

Sending CSV via web to R and sending results back

I would like to be able to have an API system, in which a POST message that contains a csv file is sent to a server/webserver/domain name. It is used as an input for an R function, and then outputs a value which is set back to the sender of the POST…
h.l.m
  • 13,015
  • 22
  • 82
  • 169
1
vote
0 answers

unable to run r script using rapache

I have installed Rapache using the below code: apt-get install r-base-dev apache2-mpm-prefork apache2-prefork-dev wget http://www.rapache.net/rapache-1.2.3.tar.gz tar xzvf rapache-1.2.3.tar.gz cd rapache-1.2.3 ./configure make make install …
1
vote
0 answers

Rapache brew not outputting javascript

As per the googleVis tutorial, I am attempting to dynamically embed a chart into my web page using Brew as follows: html:
<% brew('test.brew') %>
test.brew: <% data <- ... …
Elly
  • 73
  • 7
1
vote
0 answers

RApache qplot not working while plot does

RApache seems not to work properly in combination with ggplot2 (while working properly with plot) on my Linux SuSE 12.2 server When one does http://claree.univ-lille1.fr/R/brew/rapacheggplot which executes : <% require(ggplot2) fp <-…
mike
  • 45
  • 5
1
vote
0 answers

Connecting to MSSQL server using RJDBC in Rapache

I have a problem connecting to an MSSQL server using rApache. I use the addon-package "RJDBC" to connect to this server. In the R-Console I can connect fine and access the server but when I try to connect trough rApache (on my test website) it fails…
Nick Trileski
  • 151
  • 1
  • 2
  • 8
1
vote
1 answer

RApache does not find correct paths to packages

I am trying to configure Apache on my Linux system, but it does not find the correct paths to R packages (and so it does not find the brew package). I install R packages in ~/R/libs and, when running .libPaths() from an R session I get: [1]…
nico
  • 50,859
  • 17
  • 87
  • 112
1
vote
2 answers

How RApache force a pdf download by using R

i'm trying to using R and RApache to download pdf file with no success. Here's my code #R-Downwload pdf #--------------------------------------------- pdf("/public_html/upload/rpdf.pdf") attach(mtcars) plot(wt, mpg) abline(lm(mpg~wt)) title("PDF…
mana
  • 1,075
  • 1
  • 24
  • 43
0
votes
1 answer

Rapache brew is generating dark graphs

I finally figured out rapahce brew. It works without but, when I load the http:localhost/test.brew file, my browser displays a dark square. When I look at the file in the location, it is there. Has anybody seen this? this is the content of the…
george willy
  • 1,693
  • 8
  • 22
  • 26
0
votes
2 answers

Unable to brew using R

httpd.conf file config for brew is this: SetHandler r-script RHandler brew::brew DefaultType text/html under the brew folder, I have this…
george willy
  • 1,693
  • 8
  • 22
  • 26
0
votes
1 answer

R apache errors

I did search and couldn't find an answer. If anybody could glance at this and shares the what I am doing wrong, I'd really appreciate it: This is what I have in my httpd.conf file: SetHandler r-script …
george willy
  • 1,693
  • 8
  • 22
  • 26
0
votes
1 answer

Rapache, can not use passed argument

i used boxcox transformation and got a numeric variable lambda, but i can not read it in the next page, if i do: lambda<-GET$lambda i can not later read the variable "lambda" important to mention that the operation fails when between <%,%>, but in…
yoni and tszi
  • 19
  • 1
  • 3
0
votes
1 answer

How write to file using rapache?

We are trying some tables data to a file with no success. using write.csv. Here is some example code that we try: > <% > > X<-c(1:666) > > print(X) > > write.csv(X,"hh") > > %> Here are the rapache errors, that we can't figure: RApache…
yoni and tszi
  • 19
  • 1
  • 3