catfact

knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  warning = FALSE,
  message = FALSE
)

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()


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