Let's say I want to have a simple web application that requires some user input, performs a quick calculation in some predefined R script, and returns some cool graphics object with ggplot. One way to do this:
- Ask PHP to accept some data from the web form
- Sanitize user login in PHP
- Send arguments to some pre-written R script using some combination of the PHP exec () command and Rscript
- R performs some calculations and stores the graph of the graph on the server, as well as some meta-information in the MySQL database.
- The client can then access their new new graphics from their web browser.
It seems pretty straightforward to me. So my question is, what benefits would the rapache package have in the process described?
source share