R/cats.R

Defines functions cats

Documented in cats

#' Expresses your opinion about cats
#'
#' @param love A logical argument indicating whether or not you love cats (default = `TRUE`)
#'
#' @return One of two possible character strings (`"I love cats!"` or `"I am not a cat person."`).
#' @export
#'
#' @examples cats(TRUE)
cats <- function(love = TRUE) {
  if(love == TRUE) {
    msg <- "You like cats! What an idiot"
  }
  else {
    msg <- "I am not a cat person."
  }
  return(print(msg))
}
lmcgill/pets documentation built on Feb. 25, 2021, 3:02 p.m.