Commit 22a3e992 authored by Renaud Lancelot's avatar Renaud Lancelot 🌍
Browse files

Updated the HTML and pdf versions of Euro report.

parent 69339e75
## Interactive workflow
library(drake)
## source("packages.R")
source("src/packages.R")
## source("functions.R")
source("src/functions.R")
## ## source("packages.R")
## source("src/packages.R")
## ## source("functions.R")
## source("src/functions.R")
## ## loadd()
# The workflow plan data frame outlines what you are going to do.
......@@ -30,6 +30,9 @@ plan <- drake_plan(
## ECDC Covid19 geographic distribution data
last_day = Sys.Date() - 1,
## string for today
sdt = format(Sys.Date(), "%d %b %Y"),
covid = ecdc_covid19(last_day),
## Lock-down dates
......@@ -41,13 +44,13 @@ plan <- drake_plan(
## GIS vector layer for European countries (EU 27 + UK + EFTA +
## candidate countries + non-EU countries). Source GADM.org
## version 3.6
geo_europe = readOGR(dsn = "data/geo_europe.gpkg",
layer = "geo_europe"),
geo_europe_light = readOGR(dsn = "data/geo_europe_light.gpkg",
layer = "geo_europe_light"),
## GIS vector layer for the region of interest covering European
## countries described above
roi_europe = readOGR(dsn = "data/roi_europe.gpkg",
layer = "roi_europe"),
roi_europe_light = readOGR(dsn = "data/roi_europe_light.gpkg",
layer = "roi_europe_light"),
## Europe and neighbour countries
## EUrope 27 + UK
......@@ -89,34 +92,37 @@ plan <- drake_plan(
# knit_root_dir = "../public", # Is this necessary or convenient?
output_dir = "public", # https://github.com/ropensci/drake/issues/742
output_format =
rmdformats::readthedown(
toc_depth = 3,
lightbox = T,
gallery = T,
use_bookdown = T,
number_sections = T),
rmdformats::readthedown(
dev = "CairoPNG",
toc_depth = 3,
lightbox = T,
gallery = T,
use_bookdown = T,
number_sections = T),
output_file =
file_out("public/covid19MortalityEurope.html"),
file_out("public/covid19MortalityEurope.html"),
quiet = FALSE
),
),
report_euro_pdf =
rmarkdown::render(
knitr_in("src/Covid19MortalityEurope.Rmd"),
# knit_root_dir = "../public", # Is this necessary or convenient?
output_dir = "public", # https://github.com/ropensci/drake/issues/742
output_format =
bookdown::pdf_document2(
includes = list(in_header = "preamble.tex",
before_body = "before_body.tex"),
toc = T,
toc_depth = 3,
number_sections = T,
latex_engine = "xelatex"
),
output_file = file_out("public/covid19MortalityEurope.pdf"),
quiet = FALSE
),
rmarkdown::render(
knitr_in("src/Covid19MortalityEurope.Rmd"),
# knit_root_dir = "../public", # Is this necessary or convenient?
output_dir = "public", # https://github.com/ropensci/drake/issues/742
output_format =
bookdown::pdf_document2(
dev = "pdf",
includes = list(
in_header = "preamble.tex",
before_body = "before_body.tex"),
toc = T,
toc_depth = 3,
number_sections = T,
latex_engine = "xelatex"
),
output_file = file_out("public/covid19MortalityEurope.pdf"),
quiet = FALSE
),
## report_wcafrica_html =
## rmarkdown::render(
......
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