Commit 8e91a734 authored by Ben Anderson's avatar Ben Anderson
Browse files

added preamble

parent df147230
This diff is collapsed.
makeReport <- function(f){ makeReport <- function(f){
# default = html # 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, params = list(title = title,
subtitle = subtitle, subtitle = subtitle,
authors = authors), authors = authors),
output_file = paste0(here::here("docs/"), f, ".html") 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 ---- # >> run report ----
rmdFile <- "retrofitOrBust" # not the full path rmdFile <- "retrofitOrBust" # not the full path
title = "Retrofit or bust?" title = "#backOfaFagPacket: Retrofit or bust?"
subtitle = "" subtitle = ""
authors = "Ben Anderson" authors = "Ben Anderson"
......
...@@ -33,6 +33,13 @@ bibliography: '`r path.expand("~/github/dataknut/refs/refs.bib")`' ...@@ -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/) >This fridayFagPacket was first published as a [blog](https://dataknut.wordpress.com/2020/10/16/retrofit-or-bust/)
<hr> <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} ```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(echo = TRUE)
``` ```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment