handle_input | R Documentation |
handle_input( input_fn = input_yes_no_again_exit, implications_fn = function(answer) { }, type = c("inner", "outer"), envir = parent.frame(), is_interactive = interactive() )
input_fn |
(function) Function to capture user input |
implications_fn |
(function) Function to execute implications. Should semantically "match" the input function |
type |
(character) See clix::::handle_input_ TODO-20220201-1620: check what 'inner' and 'outer' actually does - too long ago ;-) |
envir |
(environment) The environment in which to evaluate expression. |
is_interactive |
[logical] Interactive mode yes/no |
handle_input( input_fn = input_yes_no_again_exit, implications_fn = purrr::partial( .f = function(input) { if (input) { message("Yes") } else { message("No") } } ) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.