Skip to content
Snippets Groups Projects
Commit 2687bd3a authored by Ben Anderson's avatar Ben Anderson
Browse files

added example makefile

parent e9efa70f
No related branches found
No related tags found
No related merge requests found
makeReport <- function(f){
# default = html
rmarkdown::render(input = paste0(here::here("2020-10-16-retrofOrBust", f), ".Rmd"),
params = list(title = title,
subtitle = subtitle,
authors = authors),
output_file = paste0(here::here("docs/"), f, ".html"),
output_format = "html_document"
)
# word
rmarkdown::render(input = paste0(here::here("2020-10-16-retrofOrBust", f), ".Rmd"),
params = list(title = title,
subtitle = subtitle,
authors = authors),
output_file = paste0(here::here("docs/"), f, ".docx"),
output_format = "word_document"
)
}
# >> run report ----
rmdFile <- "retrofitOrBust" # not the full path
title = "Retrofit or bust?"
subtitle = ""
authors = "Ben Anderson"
makeReport(rmdFile)
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment