asa_article.R 843 B

12345678910111213141516171819202122
  1. #' American Statistical Association (ASA) Journal format.
  2. #'
  3. #' This format was adapted from The American Statistican format, but it
  4. #' should be fairly consistent across ASA journals
  5. #'
  6. #' @inheritParams rmarkdown::pdf_document
  7. #' @param ... Arguments to \code{rmarkdown::pdf_document}
  8. #' @return R Markdown output format to pass to \code{\link[rmarkdown:render]{render}}
  9. #' @examples
  10. #' \dontrun{
  11. #' rmarkdown::draft("MyArticle.Rmd", template = "asa_article", package = "rticles")
  12. #' }
  13. #'
  14. #' @export
  15. asa_article <- function(..., keep_tex = TRUE, citation_package = 'natbib'){
  16. template <- find_resource("asa_article", "template.tex")
  17. fmt <- inherit_pdf_document(template = template,
  18. keep_tex = keep_tex,
  19. citation_package = citation_package,
  20. ...)
  21. }