Displaying 2 results from an estimated 2 matches for "oldask".
Did you mean:
oldmask
2010 Jan 11
2
example() leaves console prompting to press Enter for new graphs
...be code in example to reset this state on exit, and
I'm baffled why it doesn't actually
do it
...
if (ask == "default")
ask <- echo && grDevices::dev.interactive(orNone = TRUE)
if (ask) {
if (.Device != "null device") {
oldask <- grDevices::devAskNewPage(ask = TRUE)
if (!oldask)
on.exit(grDevices::devAskNewPage(oldask), add = TRUE)
}
op <- options(device.ask.default = TRUE)
on.exit(options(op), add = TRUE)
}
...
So, how can I restore the previous state of...
2008 Jun 18
1
example() and "ask"
Dear list,
Is it intentional that example() opens a new device and leaves it in a
mode where it asks (prompts) the user to Press return to see the next
plot for *all* subsequent plots on that device.
For example; with an already opened device, example() works as I would
expect:
> par("ask")
[1] FALSE
> example(lm)
.... OUTPUT CLIPPED ....
lm> plot(lm.D9, las = 1) #