Learn R Programming

sfsmisc (version 0.9-4)

ps.end: Close PostScript device opened by `ps.do'

Description

Closes the PostScript file (postscript), openend by a previous ps.do (or ps.latex) call, using dev.off, and additionally opens a previewer for that file, unless the previewer is already up. This almost provides an interactive device (like x11) for postscript.

Usage

ps.end(call.gv= NULL, command = getOption("eps_view"),
       debug = getOption("verbose"))

Arguments

call.gv
logical, indicating if ghostview (or the command given by command) should be called. By default, find out if ghostview is already runing on this file and only call it if needed.
command
character, giving a system command for PostScript previewing. By default, getOption("eps_view") is set to gv -watch -geometry -0+0 -magstep -2 -media BBox -noantialias which assumes gv (aka ghostview)
debug
logical; if TRUE print information during execution.

Details

Depends heavily on Unix tools, such as ps.

See Also

postscript,..

Examples

Run this code
if(interactive() || Sys.getenv("USER") == "maechler"
  ) {
    ps.do("ex.ps")
    data(sunspots)
    plot(sunspots)
    ps.end()
  }

Run the code above in your browser using DataLab