year <- format(Sys.time(), "%Y")
abs <- trimws(gsub("\\s+", " ", meta$Description))
abs <- gsub("'", "", abs)
title <- gsub("'", "", meta$Title)

bibentry(
  "Manual",
  header = "To cite the 'mapSpain' package in publications use:",
  title = paste("{mapSpain}:", title),
  year = year,
  version = meta$Version,
  author = person("Diego", "Hernangómez"),
  doi = "10.5281/zenodo.5366622",
  url = unlist(strsplit(meta$URL, ","))[1],
  abstract = abs,
  key = "R-mapspain"
)
