You can run the web app locally by installing node and npm, or by using Dev-Containers. Dev-Containers is the recommended approach if you don't already have node and npm set up.
- Dev Containers (IDE-specific)
- VS Code
- Install VS Code Dev Containers extension
- Close and reopen the project. VS Code should run some background processes to set up the tooling for you
- Instructions for other IDEs not given :P
- VS Code
- Install Tools Locally
- Install nodeJS
- Run
npm install
from the root directory - Run
npm run dev
from the root directory - I'm probably missing some steps here...
-
Open an R terminal and execute the steps below.
> install.packages("rwasm") > temp_lib <- tempdir() > remotes::install_github("r-lib/pak") > library(pak) # should not print anything > pak::pkg_install("rivm-syso/escape2024", lib = temp_lib) > dependencies <- pak::pkg_deps("rivm-syso/escape2024") > pak::pkg_install(dependencies, lib = temp_lib) # gives an error? > list.files(temp_lib, recursive = TRUE, all.files = TRUE)
-
Close the terminal - it should prompt you to save the library image
-
Save the library image - it will create a
.RData
file -
Copy the
.RData
file into thepublic/rivm-syso/escape2024
folder