year <- if (!is.null(meta$`Date/Publication`)) {
  substr(meta$`Date/Publication`, 1, 4)
} else {
  format(Sys.Date(), "%Y")
}

bibentry(
  bibtype = "Manual",
  header = "To cite package 'virustotal' in publications use:",
  title = "virustotal: R Client for the 'VirusTotal' API",
  author = person("Gaurav", "Sood"),
  year = year,
  note = paste("R package version", meta$Version),
  url = "https://github.com/themains/virustotal"
)
