I just compiled sage 4.6 from source on an Ubuntu 10.04 machine. I have the xorg-dev packages installed. However, I still cannot get r to save the plot of a histogram. Specifically, I am getting:
What does work is:
But I can't save the resulting graphic. (Of course, I can print-screen and get it that way, but I was hoping there would be a better way.) Can I compile R with PNG support somehow? Or is there another workaround which will give me what I want (namely, saving a picture of a histogram)?
asked Nov 07 '10Jason Bandlow
381 ● 1 ● 8 ● 18
(This should maybe be a comment, but I'm posting as an answer for better formatting.) I just discovered the following:
So apparently, I have X11 support, but not PNG support. Does that suggest anything that I might be able to do?
posted Nov 09 '10Jason Bandlow
381 ● 1 ● 8 ● 18
I had a very similar looking problem on Ubuntu 10.04.1 server but it turned out to be the following:
I was running my Sage notebook server through ssh session in a console. This way X11 are not accessible to R and R reports no png/jpg/X11 support with capabilities().
I tried to run Sage through virtual framebuffer (xvfb-run), but it didn't work either (edit: now it works, with sage 4.6.2, go on and try it). The solution i've found was to run Sage under X11 through VNC.
I solved this on Ubuntu by installing the
posted Apr 21 '11Jason Grout
3225 ● 7 ● 27 ● 72
This isn't an answer per se (you and I've discussed this before!), but at least I thought I'd put the following as the relevant Trac ticket: #8868.
I am puzzled as to why your Ubuntu installation isn't compiling with png support, though. R install guide says
is needed, but you are right that
so perhaps that isn't detecting your stuff. Thanks to David Kirkby, we also have
but that only would work on Solaris. We really just need to ask on r-devel about this; r-help has been of no help, but I've been reluctant to join r-devel since I know very little about R internals. But we just need to figure out what R precisely needs to allow png, and then have it compile every time those things are there.
looking at the variable
It's mentioned, for example, in the Developer's Guide section about saving output files in automated tests.
Asked: Nov 07 '10
Seen: 1,208 times
Last updated: Nov 19 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.