R/zzz.R

Defines functions .onAttach

# ----------------------------------------------------------------------
# Package hooks
# ----------------------------------------------------------------------

.onAttach <- function(libname, pkgname) {
  ver <- as.character(utils::packageVersion("lehdr"))
  packageStartupMessage(
    "lehdr ", ver, "\n",
    "To enable caching of data, set `options(lehdr_use_cache = TRUE)`", "\n",
    "\n",
    "To cite lehdr in published work (Chicago author-date):\n",
    "\n",
    "  Green, Jamaal, Liming Wang, and Dillon Mahmoudi. 2026.\n",
    "  \"lehdr: Grab Longitudinal Employer-Household Dynamics\n",
    "  (LEHD) Flat Files.\" R package version ", ver, ".\n",
    "  https://github.com/jamgreen/lehdr/\n",
    "\n",
    "Run citation(\"lehdr\") for a BibTeX entry.\n",
    "Use suppressPackageStartupMessages() to suppress this message."
  )
}

Try the lehdr package in your browser

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

lehdr documentation built on Nov. 2, 2026, 1:06 a.m.