assert_df_or_tibble | R Documentation |
Asserts that an object is pkgsnip::param_lbl(id = "df_or_tibble", as_sentence = FALSE)
.
assert_df_or_tibble(x, name = "x")
x |
R object to test. |
name |
Name of the checked object to print in error message in case the assertion fails. A character scalar. |
x
, invisibly.
Other functions extending the checkmate package:
assert_class_any()
,
assert_cli()
,
assert_inf_count()
tibble::tibble() |> pal::assert_df_or_tibble()
try(
matrix() |> pal::assert_df_or_tibble()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.