kitten: Download kitten

Description Usage Arguments Details Value Author(s) Examples

Description

Download kitten from the internet.

Usage

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

Arguments

width

Width, in pixels, of the kitten to download

height

Height, in pixels,

...

Additional arguments to download.file

destfile

Place to put the file. By default a temporary file will be created with a ".jpg" extension

Details

We use the mode="wb" download mode to donwload files reliably on windows.

The default is to download to a temporary file. Do not specify a directory name for destfile or you will get a cryptic error message!

Value

The name of the destination file, which may be useful if using the default (which is a temporary file)

Author(s)

Rich FitzJohn

Examples

1
2
dest <- kitten(300, 200)
browseURL(dest)

dide-tools/kitten documentation built on May 15, 2019, 8:26 a.m.