
## R >= 2.8.0 passes package metadata to citation().
if(!exists("meta") || is.null(meta)) meta <- packageDescription("heplots")
year <- sub("-.*", "", meta$Date)
note <- sprintf("R package version %s", meta$Version)

citHeader("To cite package 'VisCollin' in publications use:")
bibentry(
  bibtype = "Manual",
  title = "{VisCollin}: Visualizing Collinearity Diagnostics",
  author = c(
            person(given = "Michael",
                   family = "Friendly",
                   role=c("aut", "cre"),
                   email="friendly@yorku.ca",
                   comment = c(ORCID = "0000-0002-3237-0941"))),
  year = year,
  note = note,
  url = "https://CRAN.R-project.org/package=heplots",

  textVersion =
  paste("Michael Friendly",
       sprintf("(%s).", year),
        "VisCollin: Visualizing Collinearity Diagnostics.",
    paste(note, ".", sep = ""),
        "URL https://CRAN.R-project.org/package=VisCollin")
)

bibentry(
  header    = "To refer to the theory on which this package is based, also cite:",
  bibtype   = "Article",
  title     =  "Where’s Waldo: Visualizing Collinearity Diagnostics.",
  author    =  "Michael Friendly and Ernest Kwan",
  year      =  "2009",
  journal   = 	"The American Statistician",
  volume    = "63",
  number    = "1",
  pages     = "56–65",
  textVersion = "Friendly, M. & Kwan, E. (2009).
  Where’s Waldo: Visualizing Collinearity Diagnostics,
  The American Statistician, 2009, 63(1), 56–65."
)
