waitReturn {cwhtool}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, christian.hoffmann@wsl.ch, http://www.wsl.ch/staff/christian.hoffmann

Examples

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

[Package cwhtool version 1.0.4 Index]