Methods
Content$new()
Initialize this content.
Arguments
connect
The Connect instance.
content
The content data.
Content$get_content_remote()
Obtain the content data from the Connect server.
Usage
Content$get_content_remote()
Content$get_bundles()
Return the set of content bundles.
Content$bundle_download()
Download the source archive for a content bundle.
Usage
Content$bundle_download(
bundle_id,
filename = tempfile(pattern = "bundle", fileext = ".tar.gz"),
overwrite = FALSE
)
Arguments
bundle_id
The bundle identifier.
filename
Where to write the result.
overwrite
Overwrite an existing filename.
Content$bundle_delete()
Delete a content bundle.
Usage
Content$bundle_delete(bundle_id)
Arguments
bundle_id
The bundle identifier.
Content$update()
Update this content item.
Content$danger_delete()
Delete this content item.
Content$get_url()
Return the URL for this content.
Content$get_dashboard_url()
Return the URL for this content in the Posit Connect dashboard.
Usage
Content$get_dashboard_url(pane = "")
Arguments
pane
The pane in the dashboard to link to.
Content$jobs()
Return the jobs for this content
Content$register_job_kill_order()
Terminate a single job for this content item.
Usage
Content$register_job_kill_order(key)
Content$variants()
Return the variants for this content.
Content$tag_set()
Set a tag for this content.
Arguments
tag_id
The tag identifier.
Content$tag_delete()
Remove a tag for this content.
Usage
Content$tag_delete(tag_id)
Arguments
tag_id
The tag identifier.
Content$tags()
The tags for this content.
Content$permissions_add()
Add a principal to the ACL for this content.
Usage
Content$permissions_add(principal_guid, principal_type, role)
Arguments
principal_guid
GUID for the target user or group.
principal_type
Acting on user or group.
role
The kind of content access.
Content$permissions_update()
Alter a principal in the ACL for this content.
Usage
Content$permissions_update(id, principal_guid, principal_type, role)
Arguments
id
The target identifier.
principal_guid
GUID for the target user or group.
principal_type
Acting on user or group.
role
The kind of content access.
Content$permissions_delete()
Remove an entry from the ACL for this content.
Usage
Content$permissions_delete(id)
Arguments
id
The target identifier.
Content$permissions()
Obtain some or all of the ACL for this content.
Usage
Content$permissions(id = NULL, add_owner = FALSE)
Arguments
id
The target identifier.
add_owner
Include the content owner in the result set.
Content$environment()
Return the environment variables set for this content.
Content$environment_set()
Adjust the environment variables set for this content.
Usage
Content$environment_set(...)
Arguments
...
Environment variable names and values. Use NA as the value
to unset variables.
Content$environment_all()
Overwrite the environment variables set for this content.
Usage
Content$environment_all(...)
Arguments
...
Environment variable names and values.
Content$deploy()
Deploy this content
Usage
Content$deploy(bundle_id = NULL)
Arguments
bundle_id
Target bundle identifier.
Content$repository()
Get Git repository details
Returns
NULL if no repo is set, otherwise a list with fields:
repository
branch
directory
polling
last_error
last_known_commit
Content$repo_enable()
Adjust Git polling.
Usage
Content$repo_enable(polling = TRUE)
Content$repo_set()
Adjust Git repository
Usage
Content$repo_set(repository, branch = "main", directory = ".", polling = FALSE)
Arguments
repository
Git repository URL
branch
Git repository branch
directory
Git repository directory
polling
Whether to check for updates
Content$packages()
Get package dependencies
Content$print()
Print this object.
Content$clone()
The objects of this class are cloneable with this method.
Usage
Content$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.