Learn R Programming

R.devices (version 2.17.2)

nulldev: A \"null\" graphics device voiding all output

Description

A \"null\" graphics device voiding all output.

Usage

nulldev(file=nullfile(), ...)

Value

A plot device is opened; nothing is returned.

Arguments

file

The output file (ignored; forced to its default).

...

All other arguments are also ignored.

Author

Henrik Bengtsson

Details

The null graphics device opens a regular pdf device and directs its output to the null file, which is /dev/null unless on Windows where it is NUL.

Examples

Run this code
if (FALSE) {
  nulldev()
  plot(1:3)
  dev.off()
}

Run the code above in your browser using DataLab