devAskNewPage: Prompt before New Page

Description Usage Arguments Details Value See Also


This function can be used to control (for the current device) whether the user is prompted before starting a new page of output.





NULL or a logical value. If TRUE, the user will in future be prompted before a new page of output is started.


If the current device is the null device, this will open a graphics device.

The default argument just returns the current setting and does not change it.

The default value when a device is opened is taken from the setting of options("device.ask.default").

The precise circumstances when the user will be asked to confirm a new page depend on the graphics subsystem. Obviously this needs to be an interactive session. In addition ‘recording’ needs to be in operation, so only when the display list is enabled (see dev.control) which it usually is only on a screen device.


The current prompt setting before any new setting is applied. Invisibly if ask is logical.

See Also, grid.newpage

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.