[Fedora-r-devel-list] 2.10 weirdness?

Jack Tanner ihok at hotmail.com
Sat Nov 21 06:05:05 UTC 2009


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_MFESRP_Local_MapsMenu_Resturants_1x1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/r-devel/attachments/20091121/e2966d45/attachment.html 


More information about the r-devel mailing list