Export Notebook or Directory (Workspaces)
db_workspace_export(
path,
format = c("AUTO", "SOURCE", "HTML", "JUPYTER", "DBC", "R_MARKDOWN"),
host = db_host(),
token = db_token(),
output_path = NULL,
direct_download = FALSE,
perform_request = TRUE
)base64 encoded string
Absolute path of the notebook or directory.
One of AUTO, SOURCE, HTML, JUPYTER, DBC, R_MARKDOWN.
Default is SOURCE.
Databricks workspace URL, defaults to calling db_host().
Databricks workspace token, defaults to calling db_token().
Path to export file to, ensure to include correct suffix.
Boolean (default: FALSE), if TRUE download file
contents directly to file. Must also specify output_path.
If TRUE (default) the request is performed, if
FALSE the httr2 request is returned without being performed.
Export a notebook or contents of an entire directory. If path does not exist,
this call returns an error RESOURCE_DOES_NOT_EXIST.
You can export a directory only in DBC format. If the exported data exceeds
the size limit, this call returns an error MAX_NOTEBOOK_SIZE_EXCEEDED. This
API does not support exporting a library.
At this time we do not support the direct_download parameter and returns a
base64 encoded string.
Other Workspace API:
db_workspace_delete(),
db_workspace_get_status(),
db_workspace_import(),
db_workspace_list(),
db_workspace_mkdirs()