R/cida_word_document.R

Defines functions cida_word_document

Documented in cida_word_document

#' A wrapper fn for CIDA word doc output
#'
#' This is a wrapper for the rmarkdown::word_document function.
#'
#' @param ... passed to rmarkdown::word_document
#'
#' @export
cida_word_document <- function(...){

  # Define filepaths
  sty_file <- system.file("rmarkdown/", "CIDAStyles.docx", package="CIDAtools")

  # supply files to your custom format
  rmarkdown::word_document(..., reference_docx = sty_file)
}
CIDA-CSPH/CIDAtools documentation built on Sept. 18, 2023, 10:55 a.m.