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

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.

Examples

if (FALSE) { # \dontrun{
client <- connect()
item <- content_item(client, "8f37d6e0-3395-4a2c-aa6a-d7f2fe1babd0")
thumbnail <- get_thumbnail(item)
} # }