year <- 2022
author_text <- "Pesigan, I. J. A."
pkg <- meta$Package
title <- "Confidence intervals for standardized coefficients: Applied to regression coefficients in primary studies and indirect effects in meta-analytic structural equation modeling"
version <- meta$Version
author <- c(
  person(
    given = "Ivan Jacob Agaloos",
    family = "Pesigan",
    role = c("aut", "cre", "cph"),
    email = "r.jeksterslab@gmail.com",
    comment = c(ORCID = "0000-0003-4818-8420")
  )
)
note <- sprintf(
  "R package version %s",
  meta$Version
)
url <- paste0(
  "https://CRAN.R-project.org/package=",
  pkg
)

citHeader(
  paste(
    "To cite",
    pkg,
    "in publications, please use:"
  )
)

#citEntry(
#  entry = "Manual",
#  author = author,
#  title = paste0(pkg, ":", " ", title),
#  year = year,
#  note = note,
#  textVersion = paste0(
#    author_text, " ",
#    "(", year, ")", ".", " ",
#    pkg, ":", " ", title, ".", " ",
#    note, ".", " ",
#    url
#  )
#)

citEntry(
  entry = "PhdThesis",
  author = author,
  title = title,
  year = year,
  school = "University of Macau",
  textVersion = paste0(
    author_text, " ",
    "(", year, ")", ".", " ",
    title, " ",
    "[Unpublished doctoral dissertation].",
    " ",
    "University of Macau.",
    " "
  )
)
