if (!exists("meta") || is.null(meta)) meta <- packageDescription("caroline")
title <- sprintf("{%s}: %s", meta$Package, meta$Title)
author <- eval(parse(text = meta$`Authors@R`))
author <- author[sapply(author$role, function(r) "aut" %in% r)]
pub   <- "Comprehensive R Archive Network"
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version)


bibentry(bibtype = "Manual",
         title   = title,
         author  = author,
         year    = year,
         publication = pub,
         note    = note,
         url     = "https://CRAN.R-project.org/package=caroline",
         doi     = "10.32614/CRAN.package.caroline",
         header  = "To cite caroline in publications use:")
