Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

waitReturn

Wait for <Return>


Description

Wait for the user to type <Return>, depending on argument.

Usage

waitReturn(q="",ask=TRUE)

Arguments

ask

TRUE will generate the interruption, FALSE will not.

q

String for prompt

Details

The interruption will only be generated for the interactive use of R and if the call is not sinked (where it would hang the process).

Value

None.

Author(s)

Christian W. Hoffmann <christian@echoffmann.ch>

Examples

for (ii in 1:5) {
    cat(ii,"\n")
    waitReturn(ii %% 2 == 1) 
  }

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.