Assert that an object is a table.
assertTable(
x,
class = NULL,
numberColumns = NULL,
numberRows = NULL,
columns = character(),
allowExtraColumns = TRUE,
null = FALSE,
empty = TRUE,
unique = FALSE,
nm = deparse1(substitute(x), backtick = TRUE),
call = parent.frame(),
msg = NULL
)Variable to check.
A class that the table must have: "tbl", "data.frame", "tbl_sql", ...
Number of columns that it has to contain.
Number of rows that it has to contain.
Name of the columns required.
Whether extra columns are allowed.
Whether it can be NULL.
Whether it can be empty.
Whether it has to contain unique rows.
Name to use in error messages. Defaults to the expression supplied
to x.
Call argument that will be passed to cli.
Custom error message.