My original problem was an inability to generate R plots using the
following scenario:
1. HTML page sends data to Ruby CGI
2. Ruby CGI passes on data to R plotting script, which generates a plot
3. Ruby CGI passes plot back to user
With help from Scott Sherrill-Mix on this list and from
My guess is that R doesn't have a display so it's trying to make it's
default Rplots.pdf instead. What if you generate a .eps in an
appropriate location (that's writeable by your server)? e.g.:
postscript('/Library/WebServer/Documents/gsa/test.eps',horizontal=FALSE)
plot(swiss$Catholic, swiss$Exam
Greetings,
I'm trying to debug a simple two-line plot routine in R called test.R:
cor(swiss)
plot(swiss$Catholic, swiss$Examination)
These commands work fine when typed into R. They also work fine when
I invoke this routine by the following line into my terminal:
R --slave < /Library
3 matches
Mail list logo