pkg_version <- tryCatch(
  utils::packageVersion("obr"),
  error = function(e) "0.3.0"
)

bibentry(
  bibtype = "Manual",
  title   = "obr: Access Office for Budget Responsibility Forecast Data",
  author  = person("Charles", "Coverdale"),
  year    = format(Sys.Date(), "%Y"),
  note    = paste0("R package version ", pkg_version),
  url     = "https://github.com/charlescoverdale/obr"
)
