Display a Message then Read a Line from the Terminal
Usage
cli_ask(prompt = "?", ..., .envir = rlang::caller_env(), call = .envir)Arguments
- prompt
Characters to show as user prompt in console following displayed message. A non-breaking space is always placed after the prompt before passing to
readline(). Defaults to "?".- ...
Arguments passed on to
cli::cli_bulletstextCharacter vector of items. See details below on how names are interpreted.
idOptional id of the
div.bulletselement, can be used in themes.classOptional additional class(es) for the
div.bulletselement.
- .envir
Environment to evaluate the glue expressions in.
- call
The execution environment of a currently running function, e.g.
caller_env(). The function will be mentioned in error messages as the source of the error. See thecallargument ofabort()for more information.