get_thumbnail: Get content item thumbnail

View source: R/thumbnail.R

get_thumbnailR Documentation

Get content item thumbnail

Description

Download the thumbnail for a content item on Connect to a file on your computer.

Usage

get_thumbnail(content, path = NULL)

Arguments

content

A content item.

path

Optional. A path to a file used to write the thumbnail image. If no path is provided, a temporary file with the correct file extension is created.

Value

The path to the downloaded image file, if content has a thumbnail; otherwise NA.

See Also

Other thumbnail functions: delete_thumbnail(), has_thumbnail(), set_thumbnail()

Other content functions: content_delete(), content_item(), content_title(), content_update(), create_random_name(), dashboard_url(), dashboard_url_chr(), delete_thumbnail(), delete_vanity_url(), deploy_repo(), get_bundles(), get_environment(), get_image(), get_job(), get_jobs(), get_vanity_url(), git, has_thumbnail(), permissions, set_image_path(), set_run_as(), set_thumbnail(), set_vanity_url(), swap_vanity_url(), terminate_jobs(), verify_content_name()

Examples

## Not run: 
client <- connect()
item <- content_item(client, "8f37d6e0-3395-4a2c-aa6a-d7f2fe1babd0")
thumbnail <- get_thumbnail(item)

## End(Not run)


rstudio/connectapi documentation built on Dec. 20, 2024, 1:48 p.m.