This repository contains scripts for the impact assessment of the MAL Plan. Learn more about the MAL Plan here on our website.
Please note that you need to have access to various HSL Teams groups to get all input data you need.
File > Open Project... > mal-effect-calculations.Rproj
.renv::restore()
. Now, you are using packages listed in renv.lock
.\data
, \figures
, and \results
folders.helmet-model-system
Helmet-ja-mittariajot\LUEMINUT.txt
in MAL Teams)config.yml
file.scripts/figures/run.R
.scripts/accessibility/run.R
.Paths to directories and files inside this repository are referenced relatively
via here
package. Paths to external input data are defined in config.yml
.
These include for example helmet-model-system data and result files.
Spatial input data in stored in data
folder.
Results from scripts and analysis-friendly tidy data are saved to results
folder. Plots, graphs, and maps are saved to figures
folder.
Assessment scenarios are controlled in scenarios.tsv
. Agent model scenarios
are defined in config.yml
and they can be changed in
scripts/accessibility/run.R
.
We using R-package renv
that locks versions of packages. When doing analysis
first time you should load packages with command:
renv::restore(repos = "https://cloud.r-project.org", clean = TRUE)
. If
packages are already loaded, use command renv::restore()
.
R version is set in
renv.lock
and is currently 4.3.0
. This is not changed by renv
, so you might want to
check R/RStudio Global Options.
Further instructions about using renv
during development and collaboration
can be found on their website.