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 .
One file is created /etc/apache2/mods-available/r.conf
In this file , and put
<Location /R> ROutputErrors SetHandler r-script RHandler sys.source </Location> <Location /RApacheInfo> SetHandler r-info </Location>
I add another "location"
<Location /brew> SetHandler r-script RHandler brew::brew </Location>
in /brew directory I created a file called plot.R with the code :
<% args <- 'brew work' print(args) %>
localhost/brew/plot.R if I try to access the page is loading endlessly and program files /var/log/apache2/error.log displays the error :
Error in library(brew) : there is no package called 'brew' From directive RHandler on line 3 of /etc/apache2/mods-enabled/r.conf.
I 've tried to install R in the brew package
but my error keeps appearing and I can not run the script plot.R