cas_export_tables | R Documentation |
Export database tables to another format such as csv
cas_export_tables(
path = NULL,
file_format = "csv.gz",
tables = NULL,
db_connection = NULL,
disconnect_db = FALSE,
db_folder = NULL,
...
)
path |
Defaults to NULL. If NULL, path is set to the project/website/export/file_format folder. |
file_format |
Defaults to "csv.gz", i.e. compressed csv files. All
formats supported by |
tables |
Defaults to NULL. If NULL, all database tables are exported. If
given, names of the database tables to export. See
|
db_connection |
Defaults to NULL. If NULL, uses local SQLite database. If given, must be a connection object or a list with relevant connection settings (see example). |
disconnect_db |
Defaults to TRUE. If FALSE, leaves the connection to database open. |
... |
Passed to |
## Not run:
if (interactive) {
cas_export_tables(file_format = "csv")
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.