assert_inf_count | R Documentation |
Inf
Asserts that x
is either a count or positive infinity (Inf
).
assert_inf_count(x, ...)
x |
Object to check. |
... |
Further arguments passed on to |
x
, invisibly.
Other functions extending the checkmate package:
assert_class_any()
,
assert_cli()
,
assert_df_or_tibble()
pal::assert_inf_count(1001L)
pal::assert_inf_count(1)
pal::assert_inf_count(0.0)
pal::assert_inf_count(Inf)
try(
pal::assert_inf_count(-1)
)
try(
pal::assert_inf_count(1.5)
)
try(
pal::assert_inf_count(-Inf)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.