Returns the number of rows in a table
countrows(api, table_id)
A integer.
Other function_gristapi:
add_records()
,
delete_records()
,
fetch_table()
,
listcolumns()
,
listtables()
,
sync_table()
,
update_records()
# See number of rows
table_name <- paste0("Mtcars_", get_os())
api <- grist_api$new(
server = 'https://grist.numerique.gouv.fr',
api_key = Sys.getenv("GRIST_KEY"),
doc_id = Sys.getenv("GRIST_DOC_TEST")
)
countrows(api, table_name)
#> [1] 33