This repository holds the source files for reproducing Ulrik Lyngs' DPhil thesis 'Ulysses in Cyberspace: Examining the Effectiveness of Digital Self-Control Strategies'. The original version of the thesis was **handed in** on 14 November 2019 at 11.15am. It was **defended** on 31 March 2020. **Leave to supplicate** for the degree of Doctor of Philosophy in Computer Science was granted on 3 March 2021. To reproduce the thesis, download and unzip **osf_thesis_source_files_renv.zip** and open **thesis.Rproj** in RStudio. The [renv](https://rstudio.github.io/renv/) package has been used to take a snapshot of the packages used to build the thesis as per 10th March 2021 - you can inspect this by opening **renv.lock**. To restore the packages used on this date, install the renv R package with remotes::install_github("rstudio/renv"), then call renv::restore(). - To build the PDF version of the thesis from inside RStudio, click 'Build all' in the 'Build' tab. The resulting PDF file is saved as **docs/_main.pdf**. - To build the HTML version, type make bs4book in the terminal tab. The chapters' html files are saved in **docs/** (the front page is **docs/index.html**).