citHeader("To cite resemble in publications use:")

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


bibentry(
  bibtype    = "Manual",
  title    = "resemble: Sample Retrieval and Local Learning in Spectral Chemometrics. ",
  author = c(
    person("Leonardo", "Ramirez-Lopez", role = c("aut", "cre")),
    person("Antoine", "Stevens", role = c("ctb", "cre")),
    person("Claudio", "Orellano", role = c("ctb"))
    ),
  publication = "R package Vignette",
  year = year,
  note = vers,
  key = "resemble-package",
  url      = "https://CRAN.R-project.org/package=resemble",
  textVersion = paste0("Ramirez-Lopez, L., ",
                       "and Stevens, A., ",
                       "and Orellano, C., ",
                       "(", year, "). ",
                       "resemble: Regression and similarity evaluation for memory-based learning in spectral chemometrics. R package Vignette ",
                       vers, 
                       ".")
)
