waitReturn: Wait for <Return>

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
  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

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

cwhmisc documentation built on May 1, 2019, 7:55 p.m.