Submit a request to render a content item. Once submitted, the server runs an asynchronous process to render the content. This might be useful if content needs to be updated after its source data has changed, especially if this doesn't happen on a regular schedule.

Only valid for rendered content (e.g., most Quarto documents, Jupyter notebooks, R Markdown reports).

content_render(content, variant_key = NULL)

Arguments

content

The content item you wish to render.

variant_key

If a variant key is provided, render that variant. Otherwise, render the default variant.

Value

A VariantTask object that can be used to track completion of the render.

Examples

if (FALSE) { # \dontrun{
client <- connect()
item <- content_item(client, "951bf3ad-82d0-4bca-bba8-9b27e35c49fa")
task <- content_render(item)
poll_task(task)
} # }