Description Usage Arguments Value Examples
Check whether the input argument is a positive integer
1 | check_fn_args_posint(inp_arg)
|
inp_arg |
Input function argument. Should be of type numeric, and a positive integer |
(logical) returns TRUE
if input is a positive integer
1 2 3 4 5 | ## Not run:
B <- 100
assertthat::assert_that(check_fn_args_posint(inp_arg = B)) # Pass assertion
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.