waitReturn {cwhmisc}R Documentation

Wait for <Return>

Description

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

Usage

  waitReturn(ask=TRUE)

Arguments

ask TRUE will generate the interruption, FALSE will not.

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 <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN

Examples

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

[Package cwhmisc version 2.0.1 Index]