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

controlling the output with RApacheOutputErrors

I have activated ROutputErrors in r.conf and it works as is suppose to do. When I have an error I get this: Oops!!! rApache has something to tell you. View source and read the HTML comments at the end. And in the source code I get the error.…
Elzo Valugi
  • 27,240
  • 15
  • 95
  • 114
30
votes
3 answers

Set locale to system default UTF-8

When running R inside rApache, the locale is inherited from the Apache webserver, and therefore Sys.getlocale() is always equal to "C". I would like my web application to use UTF8, so I use: Sys.setlocale("LC_ALL", 'en_US.UTF-8') However this…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
19
votes
2 answers

Suggestions needed for building R server REST API's that I can call from external app?

I've seen lots of articles about consuming data in R from other RESTful API services, but I have really struggled to find any articles about the reverse. I'm interested in R being the server, and not the client. I'd like a Node.js app to call a…
Mark
  • 538
  • 6
  • 17
15
votes
1 answer

What's the intention of opencpu.org compared to other approaches?

Lately I was pointed to http://opencpu.org/ . Nifty website, but after browsing for a little while I wasn't so sure where it is located in the R landscape compared to e.g. rApache or RPy2. After waiting a long time for the server to come back I was…
Matt Bannert
  • 27,631
  • 38
  • 141
  • 207
9
votes
1 answer

Are compiled R packages backward compatible?

The new R 3.0.0 requires that all contributed packages are reinstalled. Two questions: Does this also mean that software that calls R, e.g. rapache, need to be recompiled after R has been upgraded? Are the new builds backward compatible? E.g. if an…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
7
votes
1 answer

How can I allow rapache/brew to securely connect to a MySQL database?

I'm developing a web application using rapache and brew. Within the R code, I want to use the RMySQL package to query a MySQL database, but I am questioning the best way to access the login details for the database from within the R…
kmm
  • 6,045
  • 7
  • 43
  • 53
4
votes
1 answer

Rscript + PHP exec() command vs rapache

Say I want to have a simple web app that takes some user input, performs a quick calculation in some predefined R script, and returns some cool looking graphic with say ggplot. One way to do this would be: Have PHP accept some input from a web…
stotastic
  • 796
  • 1
  • 5
  • 18
3
votes
1 answer

cannot open file 'Rplots.pdf' using rapache

I am trying to generate a pie chart on my browser using rApache my R code is this library(MASS) school = painters$School school.freq = table(school) pie(school.freq) when i run this on browser ... i am getting this…
mark gill
  • 41
  • 1
  • 3
3
votes
1 answer

lattice levelplot only fails under RApache

I'm working on a PHP web app that calls R through curl and RApache. Most things work fine. But one lattice plot throws this error: RApache Warning/Error!!!Error in uy + c(-1, 1) : non-numeric argument to binary operator I tried saving the…
dnagirl
  • 20,196
  • 13
  • 80
  • 123
3
votes
2 answers

Integrating R code with a web server

Overview: Need to integrate R library with a web server written in python. I have explored some of the options commonly mentioned on different blogs and stack overflow threads. The threads I have come across compare libraries like Rpy2 and pypeR and…
Ananya Jha
  • 31
  • 3
3
votes
1 answer

R interactive and batch mode and the heIp browser

When running R in 'batch mode', the interactive flag is set to false, which prevents any sort of user prompts that would interrupt the process in the context of an embedded/batch setting. See: R -e 'interactive()' Some holds when using Rscript. The…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
2
votes
1 answer

R with CGI Web Interface - Most flexible option

I have been exploring some options for implementing an R Web interface where users will have the option of selecting certain criteria, for eg., date ranges, plot type, etc. The issue is that a number of the R web interfaces that are listed in CRAN…
xbsd
  • 2,438
  • 4
  • 25
  • 35
2
votes
1 answer

RApache Configure Does Not Recognize R Installed with Shared Library

All: Apologies in advance for what I hope is an easy question. It's been many years since I've worked in a Unix(-like) environment... I'm trying to install RApache on a web server running the RHEL5 64-bit OS. I've successfully installed Apache…
2
votes
1 answer

User-defined environment variables are missing in OpenCPU

I defined some environment variables on CentOs and they are visible from R shell. ]$ sudo R -e 'Sys.getenv()' AMAZONREDSHIFTODBCINI /etc/amazon.redshiftodbc.ini ODBCINI /etc/odbc.ini ODBCSYSINI …
leventunver
  • 3,269
  • 7
  • 24
  • 39
2
votes
0 answers

rapache + rplumber/ jug - concurrent requests?

I understand that R is single-threaded and it does not support concurrent requests. This is the same issue when we use rplumber: R is a single-threaded programming language, meaning that it can only do one task at a time. This is still true when…
Run
  • 54,938
  • 169
  • 450
  • 748
1
2 3 4 5