Description Usage Arguments Value Examples
Error & Suggest different flag name to user
1 | cmd_help_flags_suggest(suggest_names)
|
suggest_names |
named character vector, names correspond to original value, values correspond to suggested replacement. |
error message suggesting alternatives to user
1 2 3 4 5 6 7 8 | user_flags <- list("output", "inpt")
valid_flags <- c("output", "input")
suggestions <- cmd_help_flags_similar(valid_flags, user_flags)
## Not run:
# Throws error
cmd_help_flags_suggest(suggestions)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.