R/desert_pdf.R

Defines functions desert_pdf

Documented in desert_pdf

#' Compile PDF with Desert Format
#'
#' This is a light-weight and generic academic manuscript template.
#'
#' @param keep_tex Keep the intermediate tex file used in the conversion to PDF
#' @param ... arguments to be passed to \code{rmarkdown::pdf_document()}
#'
#' @return
#' @export
#'
#' @examples
#'
desert_pdf <- function(keep_tex = TRUE, ...){

  template <- system.file("rmarkdown/templates/desert/resources/desert.tex",
                          package = "deseRt")

  rmarkdown::pdf_document(template = template,
                          keep_tex = keep_tex,
                          ...)

}
kbvernon/deseRt documentation built on May 27, 2020, 11:44 p.m.