R/cat_function.R

Defines functions cat_function

Documented in cat_function

#' A Cat Function
#'
#' This function allows you to express your love of cats.
#' @param love Do you love cats? Defaults to TRUE.
#' @keywords cats
#' @export
#' @author Hilary Parker
#' @examples
#' cat_function()
cat_function <- function(love=TRUE){
  ## from Hilary Parker
  if(love==TRUE){
    print("I love cats!")
  }
  else {
    print("I am not a cool person.")
  }
}

Try the primer package in your browser

Any scripts or data that you put into this service are public.

primer documentation built on June 5, 2026, 5:07 p.m.