View source: R/readline_check.R
readline_check | R Documentation |
Check readline input
readline_check( prompt, type = c("numeric", "integer", "length", "grep"), min = -Inf, max = Inf, warning = NULL, default = NULL, ... )
prompt |
the prompt for readline |
type |
what type of check to perform, one of c("numeric", "integer", "length", "grep") |
min |
the minimum value |
max |
the maximum value |
warning |
an optional custom warning message |
default |
the default option to return if the entry is blank, NULL allows no default, the default value will be displayed after the text in square brackets |
... |
other arguments to pass to grep |
the validated result of readline
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.