has_thumbnail: Check content item thumbnail

View source: R/thumbnail.R

has_thumbnailR Documentation

Check content item thumbnail

Description

Check whether a content item has a thumbnail.

Usage

has_thumbnail(content)

Arguments

content

A content item.

Value

TRUE if the content item has a thumbnail, otherwise FALSE. Throws an error if you do not have permission to view the thumbnail.

See Also

Other thumbnail functions: delete_thumbnail(), get_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_thumbnail(), get_vanity_url(), git, 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")
has_thumbnail(item)

## End(Not run)


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