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

The function

The cabinet_cat() function tells you if the provided name belongs to a Cabinet Office cat.

Install and load with:

# install.packages("remotes")
# remotes::install_github("matt-dray/cabinet")

library(cabinet)

Examples

Cabinet Office cats

Ossie and Evie are Cabinet Office cats.

cabinet_cat("Ossie")

Non-Cabinet-Office cats

Larry, Gladstone and Palmerston live in other departments.

cabinet_cat("Larry")

Other cats

Other cat names will not be successful.

cabinet_cat("Garfield")


matt-dray/cabinet documentation built on Oct. 22, 2022, 7:27 p.m.