I'm trying to track down a bizarre R thing on 2.10-2; could someone try reproducing this (not necessarily under the same environment) and post if this works or not?
library(ggplot2)
# This works for me on CentOS w/ 2.10-2; there's a foo.png that has the plot
png("foo.png", type="cairo")
qplot(factor(cyl), data=mtcars, geom="bar")
dev.off()
# This doesn't produce foo.png
foo <- function() {
png("foo.png", type="cairo")
qplot(factor(cyl), data=mtcars, geom="bar")
dev.off()
}
foo()
I'm stumped!
_________________________________________________________________
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurants&form=MFESRP&publ=WLHMTAG&crea=TEXT…