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.
remotes::install_github("sckott/catfact")
library(catfact)
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