Content | R Documentation |
Content
Content
An R6 class that represents content
connect
An R6 Connect object
content
The content details from Posit Connect
default_variant
The default variant for this object.
is_rendered
TRUE if this is a rendered content type, otherwise FALSE.
is_interactive
TRUE if this is a rendered content type, otherwise FALSE.
new()
Initialize this content.
Content$new(connect, content)
connect
The Connect
instance.
content
The content data.
get_connect()
Returns the Connect
instance.
Content$get_connect()
get_content()
Returns the underlying content data.
Content$get_content()
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_id
The bundle identifer.
filename
Where to write the result.
overwrite
Overwrite an existing filename.
bundle_delete()
Delete a content bundle.
Content$bundle_delete(bundle_id)
bundle_id
The bundle identifer.
internal_content()
Get this (remote) content item.
Content$internal_content()
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 = "")
pane
The 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)
key
The job key.
register_job_kill_order()
Terminate a single job for this content item.
Content$register_job_kill_order(key)
key
The 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_id
The tag identifier.
tag_delete()
Remove a tag for this content.
Content$tag_delete(tag_id)
tag_id
The 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_guid
GUID for the target user or group.
principal_type
Acting on user or group.
role
The kind of content access.
permissions_update()
Alter a principal in the ACL for this content.
Content$permissions_update(id, principal_guid, principal_type, role)
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.
permissions_delete()
Remove an entry from the ACL for this content.
Content$permissions_delete(id)
id
The target identifier.
permissions()
Obtain some or all of the ACL for this content.
Content$permissions(id = NULL, add_owner = FALSE)
id
The target identifier.
add_owner
Include 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_id
Target bundle identifier.
repo_enable()
Adjust Git polling.
Content$repo_enable(enabled = TRUE)
enabled
Polling enabled.
repo_set()
Adjust Git repository.
Content$repo_set(repository, branch, subdirectory)
repository
Git repository URL
branch
Git repository branch
subdirectory
Git repository directory
print()
Print this object.
Content$print(...)
...
Unused.
clone()
The objects of this class are cloneable with this method.
Content$clone(deep = FALSE)
deep
Whether 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.