This respository contains the code to run the analysis and reproduce all figures of the article:
Odenweller, A., Ueckerdt, F.: The green hydrogen ambition and implementation gap
The R code in this repository has no specific system requirements. It should run on any system. Package dependencies are managed with renv
(see Installation).
For reproducibility, this repository uses renv. In order to install all packages, in the main directory simply run:
renv::restore()
The ggsankey package may need to be installed manually from GitHub using devtools
:
install.packages("devtools")
devtools::install_github("davidsjoberg/ggsankey")
Rendering the RMarkdown file main.Rmd
will perform all analyses and reproduce all figures at once:
rmarkdown::render("main.Rmd")
Full execution should take no more than 5-10 minutes on a standard computer. Figures will be placed in the figures
folder. Note that most figures were manually edited afterwards. Some data analysis statistics will be written to the output file, which defaults to main.html
.
The data
folder contains all datasets required for the analysis. The scripts
folder contains functions for data processing and plotting.