Description Usage Arguments Examples
Check for certain arguments that, if present, will result in function producing an error and stopping the function if desired.
1 | check_alt_args(..., target, alts, stop = TRUE)
|
... |
Named arguments. Typically passed from another function. |
target |
String of variable for which alternatives may be present. |
alts |
Character vector of arguments that may act as alternatives to the target |
stop |
Boolean. If True, |
1 2 3 4 5 6 | ## Not run:
check_alt_args(a = 10, target = "a", alts = c("b"))
check_alt_args(b = 10, target = "a", alts = c("b"))
check_alt_args(b = 10, target = "a", alts = c("b"), stop = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.