citHeader("To cite the ModStatR package in publications use:")

titl <- meta$Title
year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date)
vers <- paste("R package version", meta$Version)
publishe <- "Dunod, Paris"
edition <- "1ère édition"
doi <- paste0("10.32614/CRAN.package.", meta$Package)
urldoi <- paste0("https://doi.org/", doi)

bibentry(bibtype="Manual",
         title = titl,
         author = c(person(given = "Frederic", family= "Bertrand"),
	                  person(given = "Emmanuelle", family= "Claeys"),
                  	person(given = "Myriam", family= "Maumy-Bertrand")),
         year         = year,
         note         = vers,
         url          = "https://github.com/fbertran/ModStatR",
         textVersion = 
         paste("Frédéric Bertrand, Emmanuelle Claeys and Myriam Maumy-Bertrand (",year ,"). ", 
               titl, ", ", vers, ". doi:", doi, ".", sep=""
               )
)


bibentry(bibtype="Book",
         title = "Modélisation statistique par la pratique avec R",
         author = c(person(given = "Frederic", family= "Bertrand"),
                	person(given = "Emmanuelle", family= "Claeys"),
                	person(given = "Myriam", family= "Maumy-Bertrand")),
	 publisher = "Dunod, Paris",
         year         = 2019,
         url          = "https://github.com/fbertran/ModStatR",
         textVersion = 
         paste("Frédéric Bertrand, Emmanuelle Claeys and Myriam Maumy-Bertrand (", year ,"). ", 
               titl, ", ", edition,", ", publishe, ".", sep=""
               )
)