# setup.R
# run as part of rmd workflows to get packages and functions
# Load libraries
library("tidyverse") #loads core tidyverse packages: ggplot2, tibble, tidyr, readr, purrr, and dplyr
# library("ggplot2") # charts and graphs
# library("tidyr") # data cleaning and manipulation. use complete() to fill implicit NAs
# library("readr") # Prefer over base R for inputing csv
# library("purrr") # alternative 'map' functions to base R apply family.
# library("dplyr") # data cleaning and manipulation of dfs
# library("stringr") #string manipulation functions
library("drake") # build caching
library("fs") #filesystem and path operations
# Rmarkdown stuff:
library("knitr") #for R markdown outputs
library("kableExtra") #for styling tables in Rmd
# Source R files with GER functions
# pkgload::load_code(".")
# source('R/make_lists.R') # load_gwp used in gwp_convert below
# source('R/make_palettes.R') # loads color palettes for graphics
source('R/lists.R') # gas etc lists
source('R/palette-funs.R')
source('R/plot_funs.R') # re-usable functions for GER plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.