Assert that an object is a table.
assertTable(
x,
class = NULL,
numberColumns = NULL,
numberRows = NULL,
columns = character(),
allowExtraColumns = TRUE,
null = FALSE,
unique = FALSE,
call = parent.frame(),
msg = NULL
)
Variable to check.
A class that the table must have: "tbl", "data.fram", "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 has to contain unique rows.
Call argument that will be passed to cli
error message.
Custom error message.