This function checks whether the input is proper time limit, i.e., a single,
positive numeric
.
is_time_limit(x, error = TRUE)
If error = TRUE
, either invisibly TRUE
or an error is thrown.
If error = FALSE
, invisibly TRUE
or FALSE
.
Any object.
In the case that x
is not a proper time limit, either TRUE
(default) to throw an error or FALSE
to return invisibly FALSE
.