R/onload.R

Defines functions .onLoad

animals <- NULL # nocov start

.onLoad <- function(libname, pkgname) {
  cow_paths <- list.files(system.file("cows", package = "cowsay"))
  animals <<- gsub("\\.cow", "", cow_paths)
} # nocov end

Try the cowsay package in your browser

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

cowsay documentation built on Nov. 5, 2025, 5:30 p.m.