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

citEntry(entry = "Manual",
	 title = "DEoptim package: Differential Evolution Optimization in R",
	 author = personList(as.person("David Ardia")),
         year = year,
	 note = vers,
	 url = "http://CRAN.R-project.org/",
	 textVersion =
         paste("David Ardia (", year,"). DEoptim package: Differential
         Evolution Optimization in R. ", vers, ".", sep=""),
         header = "to cite the DEoptim package use:"
)

citEntry(entry = "Book",
         title = "Differential Evolution - A Practical Approach to Global Optimization",
         author = personList(as.person("Kenneth V. Price"),
                             as.person("Rainer M. Storn"),
                             as.person("Jouni A. Lampinen")),
         publisher = "Springer",
         series = "Natural Computing",
         month = "January",
         year = "2006",
         note = "ISBN number: 3540209506",
         textVersion =
         paste("Kenneth V. Price, Rainer M. Storn and Jouni A. Lampinen (2006)",
               "Differential Evolution - A Practical Approach to Global Optimization.",
               "Springer. ISBN number: 3540209506."),
         header = "to cite the Differential Evolution algorithm use:"
)
