R/zzz.R

Defines functions .onLoad

# nocov start

.onLoad <- function(libname, pkgname) {
  chores_env <- chores_env()
  withr::local_options(.helper_on_load = TRUE)

  directory_load(system.file("prompts", package = "chores"))

  chores_dir <- getOption(".chores_dir", default = NULL)
  if (!is.null(chores_dir) && dir.exists(chores_dir)) {
    directory_load(chores_dir)
  }
}

# nocov end

Try the chores package in your browser

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

chores documentation built on April 3, 2025, 9:31 p.m.