| 55828 |
ripley |
1 |
% File src/library/grDevices/man/devSet.Rd
|
|
|
2 |
% Part of the R package, http://www.R-project.org
|
| 59039 |
ripley |
3 |
% Copyright 2011 R Core Team
|
| 55828 |
ripley |
4 |
% Distributed under GPL 2 or later
|
|
|
5 |
|
|
|
6 |
\name{dev.flush}
|
|
|
7 |
\alias{dev.hold}
|
| 56186 |
murdoch |
8 |
\alias{dev.flush}
|
| 55828 |
ripley |
9 |
\title{
|
|
|
10 |
Hold or Flush Output on an On-Screen Graphics Device.
|
|
|
11 |
}
|
|
|
12 |
\description{
|
|
|
13 |
This gives a way to hold/flush output on certain on-screen devices,
|
|
|
14 |
and is ignored by other devices.
|
|
|
15 |
}
|
|
|
16 |
\usage{
|
|
|
17 |
dev.hold(level = 1L)
|
|
|
18 |
dev.flush(level = 1L)
|
|
|
19 |
}
|
|
|
20 |
\arguments{
|
|
|
21 |
\item{level}{Integer >= 0. The amount by which to change the hold
|
|
|
22 |
level. Negative values will be silently replaced by zero.}
|
|
|
23 |
}
|
|
|
24 |
\details{
|
|
|
25 |
Devices which implement this maintain a stack of hold levels: calling
|
| 55871 |
ripley |
26 |
\code{dev.hold} increases the level and \code{dev.flush} decreases it.
|
|
|
27 |
Calling \code{dev.hold} when the hold level is zero increases the hold
|
|
|
28 |
level and inhibits graphics display. When calling \code{dev.flush}
|
|
|
29 |
clears all pending holds the screen display is refreshed and normal
|
|
|
30 |
operation is resumed.
|
| 55834 |
ripley |
31 |
|
| 55871 |
ripley |
32 |
This is implemented for the cairo-based \code{X11} types
|
| 55828 |
ripley |
33 |
with buffering. When the hold level is positive the \sQuote{watch}
|
| 55834 |
ripley |
34 |
cursor is set on the device's window.
|
| 55970 |
ripley |
35 |
|
| 62602 |
ripley |
36 |
It is available on the \code{quartz} device on OS X.
|
| 58206 |
ripley |
37 |
|
| 55871 |
ripley |
38 |
This is implemented for the \code{windows} device with
|
| 55834 |
ripley |
39 |
buffering selected (the default). When the hold level is positive the
|
|
|
40 |
\sQuote{busy} cursor is set on the device's window.
|
| 55828 |
ripley |
41 |
}
|
| 58206 |
ripley |
42 |
|
| 55828 |
ripley |
43 |
\value{
|
|
|
44 |
The current level after the change, invisibly. This is \code{0} on
|
|
|
45 |
devices where hold levels are not supported.
|
|
|
46 |
}
|
|
|
47 |
\keyword{ dplot }
|