R/helper_functions.R

Defines functions knit_with_date

knit_with_date <- function(input, ...) {
  rmarkdown::render(
    input,
    output_file = paste0(
      xfun::sans_ext(inputFile), '-', Sys.Date(), '.',
      xfun::file_ext(inputFile)
    )
  )
}
mluu921/cshshelper documentation built on April 22, 2020, 2:33 p.m.