desc = packageDescription("ngspatial")
year = sub(".*(2[[:digit:]]{3})-.*", "\\1", desc$Date)
vers = paste("R package version", desc$Version)
citHeader("'ngspatial' is a package that provides tools for analyzing spatial data, especially non-Gaussian areal data.\n\nThis version of 'ngspatial' is currently licensed under the GNU Public License, v2 or later.\n\nIf you are using 'ngspatial' for research that will be published, we request that you acknowledge this with the following citation:\n\n")
citEntry(entry = "Manual",
         title = "ngspatial: Classes for Spatial Data",
         author = personList(as.person("John Hughes")),
                             as.person("Xiaohui Cui"),
         year = year,
         address = "Minneapolis, MN",
         note = vers,
         textVersion =
         paste("John Hughes and Xiaohui Cui. (",
               year,
               "). ngspatial: Classes for Spatial Data. ",
               vers, ". Minneapolis, MN.", sep = ""))
