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

added preamble

parent df147230
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
makeReport <- function(f){
# default = html
rmarkdown::render(input = paste0(here::here("2020-10-16-retrofOrBust", f), ".Rmd"),
rmarkdown::render(input = paste0(here::here("retrofitOrBust", f), ".Rmd"),
params = list(title = title,
subtitle = subtitle,
authors = authors),
output_file = paste0(here::here("docs/"), f, ".html")
)
# 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?"
title = "#backOfaFagPacket: Retrofit or bust?"
subtitle = ""
authors = "Ben Anderson"
......
......@@ -33,6 +33,13 @@ bibliography: '`r path.expand("~/github/dataknut/refs/refs.bib")`'
>This fridayFagPacket was first published as a [blog](https://dataknut.wordpress.com/2020/10/16/retrofit-or-bust/)
<hr>
# fridayFagPackets
Numbers that could have been done on the back of one and should probably come with a similar health warning...
>Find out [more](https://dataknut.github.io/fridayFagPackets/).
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
......
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