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

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

bibentry(
  bibtype = "Article",
  title = "Taming PITCHf/x Data with {pitchRx} and {XML2R}",
  author = personList(as.person("Carson Sievert")),
  journal = "The R Journal",
  year = "2014",
  volume = "6",
  number = "1",
  url = "http://journal.r-project.org/archive/2014-1/sievert.pdf",

  textVersion =
  paste("Carson Sievert (2014).",
        "Taming PITCHf/x Data with {pitchRx} and {XML2R}",
        "The R Journal, 6(1).",
        "URL http://journal.r-project.org/archive/2014-1/sievert.pdf.")
)

citEntry(
  entry = 'manual',
  title = paste('pitchRx:', meta$Title),
  author = as.person(meta$Author),
  year = year,
  note = vers,
  url = meta$URL,
  textVersion = paste('Carson Sievert (', year, '). pitchRx: ', meta$Title, '. ', vers, '.', sep = '')
)
