citHeader("To cite in publications use:")

## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("arules")

year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s.", meta$Version)

citEntry(entry = "Manual",
         title = "arules: Mining Association Rules and Frequent Itemsets",
         author = {
             personList(person("Michael", "Hahsler",
                               email = "michael@hahsler.net"),
                        person("Christian", "Buchta",
                               email = "Christian.Buchta@wu.ac.at"),
                        person("Bettina", "Gruen",
                               email = "Bettina.Gruen@wu.ac.at"),
                        person("Kurt", "Hornik",
                               email = "Kurt.Hornik@R-project.org"))
         },
         year = year,
         note = note,
         url = "http://CRAN.R-project.org/",
         textVersion = {
             paste("Michael Hahsler, Bettina Gruen and Kurt Hornik",
                   sprintf("(%s).", year),                         
                   "arules: Mining Association Rules and Frequent Itemsets.",
                   note,
                   sep = "  ")
         })

citEntry(entry = "article",
         title = paste("arules -- {A} Computational Environment for Mining",
                       "Association Rules and Frequent Item Sets"),
         author = {
             personList(person("Michael", "Hahsler",
                               email = "michael@hahsler.net"),
                        person("Bettina", "Gruen",
                               email = "Bettina.Gruen@wu.ac.at"),
                        person("Kurt", "Hornik",
                               email = "Kurt.Hornik@R-project.org"))
         },
         year = 2005,
         journal = "Journal of Statistical Software",
         volume = 14,
         number = 15,
         pages = "1--25",
         url = "http://www.jstatsoft.org/v14/i15/",
         month = "October",
         issn = "1548-7660",
         textVersion = {
             paste(paste("Michael Hahsler, Bettina Gruen and",
                         "Kurt Hornik (2005),",
                         "arules -- A Computational Environment for",
                         "Mining Association Rules and Frequent Item Sets."),
                   "Journal of Statistical Software 14/15.",
                   "URL: http://www.jstatsoft.org/v14/i15/.",
                   sep = "  ")
         })
