citHeader("To cite package 'runjags' in publications use:")

desc <- packageDescription("runjags")
year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", desc$Date)
vers <- paste("R package version", desc$Version)

citEntry(entry="Manual",
         title = "runjags: Run Bayesian MCMC Models in the BUGS syntax from Within R",
         author = personList(as.person("M. J. Denwood")),
         year = year,
         note = vers,
url = "http://cran.r-project.org/web/packages/runjags/",
         textVersion =
         paste("M. J. Denwood (", year, "). runjags: Run Bayesian MCMC Models in the BUGS syntax from Within R. ", vers, ".", sep=""))
