Hello all I need your help. I currently have a website that calls a python
script that uses rpy to create graphs. When I run the script from the
console it works great but when I run the script via the website it is only
creating a zero byte png file. The webserver that we are running is Apache,
Patrick Jackson wrote:
> Hello all I need your help. I currently have a website that calls a python
> script that uses rpy to create graphs. When I run the script from the
> console it works great but when I run the script via the website it is only
> creating a zero byte png file.
> r.png(fil
You also may want to try to use the PDF graphics device in R (function pdf) and
then use convert (http://imagemagick.org) to make a PNG for viewing on the web.
This is the method I have used with great success in my Django-dataplot package
(http://django-dataplot.sf.net), which is a RPy plotting
Ok I have checked the version of R, and I am using 2.7.
I was looking at my log files, and noticed that I get an error that
looks like this:
[EMAIL PROTECTED] httpd]$ tail error_log
In function (filename = "Rplot%03d.png", width = 480, height = 480, :
unable to open connection to X11 display '
Patrick Jackson wrote:
> So it does look like it is the issue with Xwindows, but since I have R
> version 2.7, why am I getting this error?
Hmmm maybe I was a spot too hasty!
The png() function can use either the Xlib or the Cairo back-end to make
its file. If it is using Xlib then you need an
I believe we are finally getting somewhere
By doing capabilities() in R I get:
jpegpngtcltk X11 aqua
http/ftp sockets libxml
TRUE TRUE TRUE TRUEFALSE TRUE TRUE TRUE
fifo cledit iconv NLS profmem cai