kittyR | R Documentation |
This function displays a picture of a cat and plays a short sound clip containing cat meow. It is possible that once in a while you might get a picture that is in no way feline related. In such cases, just try again.
Currently, the images are collected from the following sources-
The sound files come from the following CC BY 3.0 source: https://soundbible.com/
kittyR(url = NULL, meow = TRUE, sound = 3, only_kitten = FALSE, ...)
url |
An URL for the source from which individual image URLs are to be
extracted. Default is |
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 which sound is to be
played by specifying one of the built-in sounds (stored in |
only_kitten |
Logical that decides whether only kitten pics should be
selected (default: |
... |
Additional arguments (currently ignored). |
A photo of a cat is downloaded and displayed in the plot window.
library(kittyR) # relying on default collection set.seed(122) kittyR(meow = FALSE) # in case you want only pics of kittens set.seed(111) kittyR(meow = FALSE, only_kitten = TRUE) # provide a custom URL set.seed(300) kittyR( url = "https://unsplash.com/s/photos/cat/", meow = FALSE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.