fetch: Download a gif

Description Usage Arguments Value Author(s)

Description

Download a gif

Usage

1
fetch(x, what = "original", format = "gif", dest = NULL, quiet = FALSE)

Arguments

x

A giphy object

what

The type of image to download. original will always be available but giphy supplies fixed_height, fixed_width downsized, etc. See names(x$images) for possible options for a given image. The default is to download the original (largest) gif.

format

The format to download in. Default is gif, but mp4 and webp are often available (for what="looping" the only option is mp4.

dest

Destination to download the file to. Default is a temporary file.

quiet

Logical indicating if progress bars during download should be suppressed.

Value

The filename of the downloaded file. This can be fed into show_gif.

Author(s)

Rich FitzJohn


richfitz/jiffy documentation built on May 27, 2019, 8:18 a.m.