README.md

catfact

catfact package

Get a random cat fact from the Cat Fact API https://catfact.ninja/

Package to demonstrate using vcr for unit test caching in an R package that uses httr.

vcr was originally built with support only for the crul package - but now also supports httr. Support for curl is in the works.

install

remotes::install_github("sckott/catfact")
library(catfact)

get a cat fact

cat_fact()
#> $fact
#> [1] "Cats eat grass to aid their digestion and to help them get rid of any fur in their stomachs."
#> 
#> $length
#> [1] 92


sckott/catfact documentation built on Dec. 1, 2020, 10:29 a.m.