Description Usage Arguments Value Examples
Wraps fun
in a function that runs fun
and then issues a
readline
prompt to prevent further R code evaluation until user
presses a key.
1 | make_blocking(fun, msg = "Press ENTER to continue...", invisible.res = TRUE)
|
fun |
a function |
msg |
character(1L) a message to use as the |
invisible.res |
whether to return the result of |
fun
, wrapped in a function that does the blocking.
1 | make_blocking(sum, invisible.res=FALSE)(1:10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.