Create a table in a base
Arguments
- name
Table name.
- fields
A list of field configurations. The first field becomes the primary field.
- base_id
Base ID. If
NULL, uses the session default set byair_set_base()or theAIRTABLE_BASE_IDenvironment variable.- description
Optional table description.
- token
Personal access token (resolved via
air_token()ifNULL).
Examples
if (FALSE) { # \dontrun{
tbl <- at_create_table(
name = "Tasks",
fields = list(
list(name = "Title", type = "singleLineText"),
list(name = "Done", type = "checkbox",
options = list(icon = "check", color = "greenBright")),
list(name = "Due", type = "date",
options = list(dateFormat = list(name = "iso")))
),
base_id = "appXXXXXXXXXXXXXX"
)
tbl$id
} # }