Download a kitten picture from placekitten.com

kitten(width, height, destfile = tempfile("kitten", fileext = ".jpg"), ...)

Arguments

width

Width, in pixels

height

Height, in pixels

destfile

File to save into. By default this is a temporary file with an extension ".jpg"

...

Additional parameters passed through to download.file.

Value

The filename saved in (useful when using the default destfile

Examples

stegasaur::kitten(200, 200)
#> [1] "/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//RtmpJZQ8HH/kitten7c72d4bdd92.jpg"