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

bibentry(bibtype = "Manual",
  title          = "\\texttt{semTools}: {U}seful tools for structural equation modeling",
  author         = c(person(given = c("Terrence","D."), family = "Jorgensen"),
                     person(given = "Sunthud", family = "Pornprasertmanit"),
                     person(given = c("Alexander","M."), family = "Schoemann"),
                     person(given = "Yves", family = "Rosseel")),
  year           = year,
  note           = vers,
  url            = url,

  textVersion  =
  paste("Jorgensen, T. D., Pornprasertmanit, S., Schoemann, A. M., & Rosseel, Y. (",
        year, "). semTools: Useful tools for structural equation modeling. ",
        vers, ". Retrieved from ", url, sep = ""),

  header = "The maintainer and *primary* contributors to this package are listed as authors, but this package is a collaborative work. The maintainer(s) cannot take credit for others' contributions. Whenever possible, please cite the paper(s) associated with the development of a particular function (e.g., permuteMeasEq or parcelAllocation) or tutorials about how to use them (e.g., probe2WayMC and related functions), which are listed in the References section of its associated help page.  Otherwise, please use the following citation for the package as a whole:"
)
