Learn R Programming

colordistance (version 1.1.2)

pause: Pause and wait for user input

Description

Tiny little function wrapper, mostly used for looping or when several plots are output by a single function. Waits for user keystroke to move on to next image or exit.

Usage

pause()

Arguments

Examples

Run this code
# NOT RUN {
for (i in c(1:5)) {
  print(i)
  if (i < 5) {
    colordistance:::pause()
  }
}
# }

Run the code above in your browser using DataLab