citHeader("To cite the 'humidity' package in publications use:")

year = sub('.*(2[[:digit:]]{3})-.*', '\\1', meta$Date, perl = TRUE)
vers = paste('R package version', meta$Version)

bibentry(
  bibtype = "Manual",
  title = paste('humidity:', meta$Title),
  author = Filter(function(p) 'aut' %in% p$role, as.person(meta$Author)),
  year = year,
  note = vers,
  url = meta$URL,
  textVersion = paste('Jun Cai (', year, '). humidity: ', meta$Title, '. ', vers, '.', sep = '')
)
