This repository contains the computational notebooks used in the workshop "Tracing Sustainable Urban River Space Transformations" on 9 April at Lorentz Center @lambda.
GitHub repository: CityRiverSpaces/lorentz-workshop
A rendered version of the CRiSp demo notebook is available at the URL: https://cityriverspaces.github.io/lorentz-workshop/demo.html
In order to run the notebook live:
- Clone and access this repository. You can do it from RStudio:
- From the "Project" menu (top right), select
Create Project>Version Control>Git - Paste the following URL as
Repository URL: https://github.com/CityRiverSpaces/lorentz-workshop.git and select the path where you want to create the project directory (you can leave the fieldProject directory nameempy). - Click on
Create Project
- From the "Project" menu (top right), select
- If you are working on the shared RStudio Server, all dependencies should already be installed, so you can move on to point 4.
- If you are working on your local machine, we recommend to install dependencies in a local R environment, which can be created by typing in the R console:
When prompted for input, type
# install.packages("renv") renv::init() renv::install()
1(i.e.Use only the DESCRIPTION file). - Open the file
demo.qmd. You can run cells individually with the play button or render the full notebook with theRenderbutton (blue arrow symbol on top of thedemo.qmdpanel).
To develop and contribute a CRiSp use case notebook, follow these steps:
- If you do not have a GitHub account, sign up, then log in and configure SSH authentication;
- Fork this repository by following this link, then click on
Create fork; - Clone and access the forked repository. See instructions at point 1. in the previous section, using the following
Repository URL:git@github.com:GITHUB_USER/lorentz-workshop.git(replaceGITHUB_USERwith your actual username); - Make a copy of the file usecase.qmd and rename it to
usecase-TYPE-CASE.qmdby replacingTYPEwithsingleormultiple, andCASEwithCITY_NAME-RIVER_NAMEandCITY_RIVER_SET_NAME, respectively; - Work together in the group to fill in the template with the chosen use case; Use the
Renderbutton to generate the rendered notebook as a.htmlfile. - Commit and push changes to your fork. Include the newly created
.qmdand.htmlfiles, as well as the correspondingXXX_filesfolder. If you are working in RStudio, you can do this from theGittab:- Add a tick under
Stagedfor the files or folder that you want to commit; - Click on the
Commitbutton; - Type in a commit message in the top right box, then hit
Commit; - Click on
Pushto push the newly added content to your forked repository.
- Add a tick under
- Open a Pull Request on the upstream workshop repository to submit your use case and share any issues you encountered while implementing it in the notebook.