shortcut for closing plots

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Sun Sep 12 16:23:41 CEST 2004


Patrick Drechsler writes:
 > Hi Stephen,
 > 
 > Stephen Eglen wrote on 12 Sep 2004 13:22:51 MET:
 > 
 > >  > is there an ESS function for closing/deleting plots?
 > >
 > > not that I know of.  But what program (S/R/SAS/...) are you
 > > using?
 > 
 > R
 > 
 > [...]
 > > (defun ess-closewin ()
 > >   (interactive)
 > >   (ess-execute "closewin"))
 > 
 > % for R:
 >   (ess-execute "dev.off()"))

Great!  Having just checked the man page, you may prefer under R to
use:
  'graphics.off()'    shuts down all open graphics devices.

Thanks, Stephen




More information about the ESS-help mailing list