waitReturn {cwhtool} | R Documentation |
Wait for the user to type <Return>, depending on argument.
waitReturn(ask=TRUE)
ask |
TRUE will generate the interruption, FALSE will not. |
The interruption will only be generated for the interactive use of R and
if the call is not sink
ed (where it would hang the process).
None.
Christian W. Hoffmann, christian.hoffmann@wsl.ch, http://www.wsl.ch/staff/christian.hoffmann
for (ii in 1:5) { cat(ii,"\n") waitReturn(ii %% 2 == 1) }