if(!exists("meta") || is.null(meta)) meta <- packageDescription("coenocliner")

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

bibentry(bibtype = "Manual",
         title = "coenocliner: A coenocline simulation package for R",
         author = person(
            given = "Gavin L.",
            family = "Simpson",
            email = "ucfagls@gmail.com",
            role = c("aut", "cre"),
            comment = c(ORCID = "0000-0002-9084-8413")
         ),
         address = "Aarhus, Denmark",
         year = sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date),
         url = "https://github.com/gavinsimpson/coenocliner",

         textVersion =
         paste("Simpson, G.L. ",
               paste("(", sub(".*(2[[:digit:]]{3})-.*", "\\1",
                              meta$Date), ")."),
               "coenocliner: A coenocline simulation package for R",
               meta$Version,").",
               "(https://github.com/gavinsimpson/coenocliner).", sep=" ")
)
