Description Usage Arguments Details Value Author(s) Examples
Wait for the user to type <Return>, depending on argument.
1 | waitReturn(q="",ask=TRUE)
|
ask |
|
q |
String for prompt |
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@echoffmann.ch>
1 2 3 4 | for (ii in 1:5) {
cat(ii,"\n")
waitReturn(ii %% 2 == 1)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.