Deploys a bundle (tarball) to an Posit Connect server. If not provided,
name (a unique identifier) will be an auto-generated alphabetic string. If
deploying to an existing endpoint, you can set name or guid to the
desired content.
Usage
deploy(
connect,
bundle,
name = create_random_name(),
title = name,
guid = NULL,
...,
.pre_deploy = {
}
)
deploy_current(content)
Value
Task A task object
Arguments
connect
A Connect object
bundle
A Bundle object
name
The unique name for the content on the server
title
optional The title to be used for the content on the server
guid
optional The GUID if the content already exists on the server
...
Additional arguments passed along to the content creation
.pre_deploy
An expression to execute before deploying the new bundle. The variables content and bundle_id are supplied
content
A Content object
Details
This function accepts the same arguments as connectapi::content_update().
deploy_current() is a helper to easily redeploy the currently active bundle
for an existing content item.
See Also
connectapi::content_update
Other deployment functions:
bundle_dir(),
bundle_path(),
bundle_static(),
download_bundle(),
poll_task()