pnas_article.R 639 B

123456789101112131415161718192021222324
  1. #' PNAS journal format.
  2. #'
  3. #' Format for creating submissions to PNAS journals.
  4. #'
  5. #' @inheritParams rmarkdown::pdf_document
  6. #' @param ... Additional arguments to \code{rmarkdown::pdf_document}
  7. #'
  8. #' @return R Markdown output format to pass to
  9. #' \code{\link[rmarkdown:render]{render}}
  10. #'
  11. #' @examples
  12. #'
  13. #' \dontrun{
  14. #' library(rmarkdown)
  15. #' draft("MyArticle.Rmd", template = "pnas_article", package = "rticles")
  16. #' }
  17. #'
  18. #' @export
  19. pnas_article <- function(..., keep_tex = TRUE) {
  20. inherit_pdf_document(...,
  21. keep_tex = keep_tex,
  22. template = find_resource("pnas_article", "template.tex"))
  23. }