kitten: Download kittens

Description Usage Arguments Details Value Examples

View source: R/kitten.R

Description

Download kittens from the internet

Usage

1
kitten(width, height, destfile, ...)

Arguments

width

Width of the kitten, in pixels

height

Height of the kitten, in pixels

destfile

Place to download the kitten to. tempfile() makes a good place

...

Additional arguments passed through to download.file

Details

This is the details section

Value

Returns the filename of the kitten (i.e., destfile)

Examples

1
2
3
4
# download a small cat
file <- kitten(100, 100, tempfile())
# download a very large cat
file <- kitten(1000, 100, tempfile())

richfitz/cat documentation built on May 27, 2019, 8:16 a.m.