This is a convenience function that is meant to make it easier for you to publish your Databricks backed content to a publishing server. It is meant to be primarily used with Posit Connect.
deploy_databricks(
appDir = NULL,
python = NULL,
account = NULL,
server = NULL,
lint = FALSE,
forceGeneratePythonEnvironment = TRUE,
version = NULL,
cluster_id = NULL,
host = NULL,
token = NULL,
confirm = interactive(),
...
)No value is returned to R. Only output to the console.
A directory containing an application (e.g. a Shiny app or plumber API)
Defaults to NULL. If left NULL, and if called within RStudio, it will attempt
to use the folder of the currently opened document within the IDE. If there are
no opened documents, or not working in the RStudio IDE, then it will use
getwd() as the default value.
Full path to a python binary for use by reticulate. It defaults to NULL.
If left NULL, this function will attempt to find a viable local Python
environment to replicate using the following hierarchy:
version - Cluster's DBR version
cluster_id - Query the cluster to obtain its DBR version
If one is loaded in the current R session, it will verify that the Python environment is suited to be used as the one to use
The name of the account to use to publish
The name of the target server to publish
Lint the project before initiating the project? Default to FALSE. It has been causing issues for this type of content.
If an existing requirements.txt file is found, it will be overwritten when this argument is TRUE.
The Databricks Runtime (DBR) version. Use if python is NULL.
The Databricks cluster ID. Use if python, and version are
NULL
The Databricks host URL. Defaults to NULL. If left NULL, it will
use the environment variable DATABRICKS_HOST
The Databricks authentication token. Defaults to NULL. If left NULL, it will
use the environment variable DATABRICKS_TOKEN
Should the user be prompted to confirm that the correct
information is being used for deployment? Defaults to interactive()
Additional named arguments passed to rsconnect::deployApp() function