On Thu, Jul 1, 2010 at 8:36 AM, kcrisman <kcris...@gmail.com> wrote: > > > On Jul 1, 10:30 am, Jason Grout <jason-s...@creativetrax.com> wrote: >> Is there an easy way to make this work? >> >> % sage -R >> >> R version 2.10.1 (2009-12-14) >> Copyright (C) 2009 The R Foundation for Statistical Computing >> ISBN 3-900051-07-0 >> >> R is free software and comes with ABSOLUTELY NO WARRANTY. >> You are welcome to redistribute it under certain conditions. >> Type 'license()' or 'licence()' for distribution details. >> >> R is a collaborative project with many contributors. >> Type 'contributors()' for more information and >> 'citation()' on how to cite R or R packages in publications. >> >> Type 'demo()' for some demos, 'help()' for on-line help, or >> 'help.start()' for an HTML browser interface to help. >> Type 'q()' to quit R. >> >> [Previously saved workspace restored] > > Did you try this (on your Mac, I assume)? > > >> quartz() >> demo(graphics) > <snip lots of text> > > At some point it will say > > Hit <Return> to see next plot: > > And then hitting <Return> gives me (for instance) January pie sales... > It should work VERY nicely. > > The point is that demo(graphics) probably won't work unless you open a > graphics device; maybe this happens automatically for 'native' R. On > Linux I assume that > >> png() > > instead of > >> quartz() > > will work, but I can't test this since I don't have a Linux box.
I just tried this on my Linux box (Debian testing, 64-bit, Sage compiled from source): ./sage -R ... > demo() and it worked fine, popping up a graphics window. I didn't do anything to select a graphics device. (BTW, the first "graphic" is evidently just a blank white window... don't worry, they get more interesting.) Carl -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org