kittyR: Cats in R console.

Description Usage Arguments Value Author(s) Examples

Description

This function displays a picture of a cat and plays a short sound clip containing cat meow. Currently, the images are collected from the following sources-

  1. https://pixabay.com/en/photos/cat/

  2. https://www.pexels.com/search/cat/

  3. https://pixabay.com/en/photos/kitten/

  4. https://www.pexels.com/search/kitten/

The sound files come from the following CC BY 3.0 source: http://soundbible.com/suggest.php?q=cat+meow&x=0&y=0

Usage

1
2
kittyR(url = NULL, meow = TRUE, sound = 3, only_kitten = FALSE,
  ...)

Arguments

url

URL for the source from which individual image URLs are to be extracted. Default is NULL. If NULL, a randomly drawn image from the default collection will be shown.

meow

Logical that decides whether to play a meow sound along with the picture of a cat.

sound

A character string or a number specifying what sound to be played by either specifying one of the built in sounds, specifying the path to a .wav file or specifying an url. There are currently 6 meows included. The default is 3.

only_kitten

Logical that decides whether only kitten pics should be selected (default: FALSE).

...

Additional arguments (currently ignored).

Value

A photo of a cat is downloaded and displayed in the plot window.

Author(s)

Indrajeet Patil

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# relying on default collection
set.seed(122)
kittyR::kittyR(meow = FALSE)

# in case you want only pics of kittens
set.seed(111)
kittyR::kittyR(meow = FALSE, only_kitten = TRUE)

# provide a custom URL
kittyR::kittyR(
  url = "https://visualhunt.com/photos/cat/",
  meow = FALSE
)

IndrajeetPatil/kittyR documentation built on June 12, 2019, 7:34 a.m.