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

pkg <- meta$Package
pkg_title <- "Moderated nonlinear factor analysis"

citHeader( paste0( "To cite the '", pkg , "' package in publications use:") )

bibentry(bibtype="Manual",
         title = paste0( pkg , ": " , pkg_title ) ,
         author = c(as.person("Alexander Robitzsch")),
         year = year,
         note = vers,
         url =  paste0( "https://CRAN.R-project.org/package=", pkg) ,
         textVersion =
         paste0("Robitzsch, A. (",
               year,
               "). " , pkg , ": " , pkg_title , ". ",
               vers, paste0( ". https://CRAN.R-project.org/package=", pkg) )
    )

