Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 /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

 install.packages("brew","/usr/local/lib/R/library")

but my error keeps appearing and I can not run the script plot.R

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.