db_workspace_import | R Documentation |
Import a notebook or the contents of an entire directory.
db_workspace_import(
path,
file = NULL,
content = NULL,
format = c("AUTO", "SOURCE", "HTML", "JUPYTER", "DBC", "R_MARKDOWN"),
language = NULL,
overwrite = FALSE,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
path |
Absolute path of the notebook or directory. |
file |
Path of local file to upload. See |
content |
Content to upload, this will be base64-encoded and has a limit of 10MB. |
format |
One of |
language |
One of |
overwrite |
Flag that specifies whether to overwrite existing object.
|
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
perform_request |
If |
file
and content
are mutually exclusive. If both are specified content
will be ignored.
If path already exists and overwrite
is set to FALSE
, this call returns
an error RESOURCE_ALREADY_EXISTS.
You can use only DBC
format to import
a directory.
Other Workspace API:
db_workspace_delete()
,
db_workspace_export()
,
db_workspace_get_status()
,
db_workspace_list()
,
db_workspace_mkdirs()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.