| Content | R Documentation |
Content
Content
An R6 class that represents content.
connectAn R6 Connect object.
contentThe content details from Posit Connect. Properties are described in get_content().
default_variantThe default variant for this object.
is_renderedTRUE if this is a rendered content type, otherwise FALSE.
is_interactiveTRUE if this is a rendered content type, otherwise FALSE.
new()Initialize this content.
Content$new(connect, content)
connectThe Connect instance.
contentThe content data.
get_content_remote()Obtain the content data from the Connect server.
Content$get_content_remote()
get_bundles()Return the set of content bundles.
Content$get_bundles()
bundle_download()Download the source archive for a content bundle.
Content$bundle_download( bundle_id, filename = tempfile(pattern = "bundle", fileext = ".tar.gz"), overwrite = FALSE )
bundle_idThe bundle identifer.
filenameWhere to write the result.
overwriteOverwrite an existing filename.
bundle_delete()Delete a content bundle.
Content$bundle_delete(bundle_id)
bundle_idThe bundle identifer.
update()Update this content item.
Content$update(...)
...Content fields.
danger_delete()Delete this content item.
Content$danger_delete()
get_url()Return the URL for this content.
Content$get_url()
get_dashboard_url()Return the URL for this content in the Posit Connect dashboard.
Content$get_dashboard_url(pane = "")
paneThe pane in the dashboard to link to.
jobs()Return the jobs for this content
Content$jobs()
job()Return a single job for this content.
Content$job(key)
keyThe job key.
register_job_kill_order()Terminate a single job for this content item.
Content$register_job_kill_order(key)
keyThe job key.
variants()Return the variants for this content.
Content$variants()
tag_set()Set a tag for this content.
Content$tag_set(tag_id)
tag_idThe tag identifier.
tag_delete()Remove a tag for this content.
Content$tag_delete(tag_id)
tag_idThe tag identifier.
tags()The tags for this content.
Content$tags()
permissions_add()Add a principal to the ACL for this content.
Content$permissions_add(principal_guid, principal_type, role)
principal_guidGUID for the target user or group.
principal_typeActing on user or group.
roleThe kind of content access.
permissions_update()Alter a principal in the ACL for this content.
Content$permissions_update(id, principal_guid, principal_type, role)
idThe target identifier.
principal_guidGUID for the target user or group.
principal_typeActing on user or group.
roleThe kind of content access.
permissions_delete()Remove an entry from the ACL for this content.
Content$permissions_delete(id)
idThe target identifier.
permissions()Obtain some or all of the ACL for this content.
Content$permissions(id = NULL, add_owner = FALSE)
idThe target identifier.
add_ownerInclude the content owner in the result set.
environment()Return the environment variables set for this content.
Content$environment()
environment_set()Adjust the environment variables set for this content.
Content$environment_set(...)
...Environment variable names and values. Use NA as the value
to unset variables.
environment_all()Overwrite the environment variables set for this content.
Content$environment_all(...)
...Environment variable names and values.
deploy()Deploy this content
Content$deploy(bundle_id = NULL)
bundle_idTarget bundle identifier.
repository()Get Git repository details
Content$repository()
NULL if no repo is set, otherwise a list with fields:
repository
branch
directory
polling
last_error
last_known_commit
repo_enable()Adjust Git polling.
Content$repo_enable(polling = TRUE)
pollingPolling enabled.
repo_set()Adjust Git repository
Content$repo_set(repository, branch = "main", directory = ".", polling = FALSE)
repositoryGit repository URL
branchGit repository branch
directoryGit repository directory
pollingWhether to check for updates
packages()Get package dependencies
Content$packages()
print()Print this object.
Content$print(...)
...Unused.
clone()The objects of this class are cloneable with this method.
Content$clone(deep = FALSE)
deepWhether to make a deep clone.
Other R6 classes:
Bundle,
ContentTask,
Environment,
PositConnect,
Task,
Vanity,
Variant,
VariantSchedule,
VariantTask
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.