content_render | R Documentation |
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)
content |
The content item you wish to render. |
variant_key |
If a variant key is provided, render that variant. Otherwise, render the default variant. |
A VariantTask object that can be used to track completion of the render.
## Not run:
client <- connect()
item <- content_item(client, "951bf3ad-82d0-4bca-bba8-9b27e35c49fa")
task <- content_render(item)
poll_task(task)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.