check_fn_args_posint: Check whether the input argument is a positive integer

Description Usage Arguments Value Examples

View source: R/utils-common.R

Description

Check whether the input argument is a positive integer

Usage

1

Arguments

inp_arg

Input function argument. Should be of type numeric, and a positive integer

Value

(logical) returns TRUE if input is a positive integer

Examples

1
2
3
4
5
## Not run: 
B <- 100
assertthat::assert_that(check_fn_args_posint(inp_arg = B)) # Pass assertion

## End(Not run)

shamindras/maar documentation built on Sept. 19, 2021, 10:21 p.m.