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:
<Directory /usr/local/apache2/htdocs/R>
SetHandler r-script
RHandler sys.source
</Directory>
This is the content of test.R
, very simple:
<%
x<-1:10000
t=plot(x)
print(t)
%>
I get an Internal Server error when I enter the URL, http://localhost/R/test.R
. Apache log says this:
Traceback: 2: parse(n = -1, file = file) 1: sys.source(file = "/usr/local/apache2/htdocs/R/test.R", envir = .rAenv)
Any ideas?