waitReturn {cwhmisc} | 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 <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN
for (ii in 1:5) { cat(ii,"\n") waitReturn(ii %% 2 == 1) }