From 7c6769215588678a91df8b4b79b889d2b5d09bd3 Mon Sep 17 00:00:00 2001 From: Lennart Wittkuhn Date: Wed, 18 Oct 2023 20:59:53 +0200 Subject: [PATCH] Add instructions about renv to README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index b9fcb55..e845b2b 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,30 @@ Welcome to the course booklet repository! :wave: To make this booklet FAIR (finable, accessible, interoperable, and reusable), we have created an OSF entry: https://osf.io/rupt7/ +## Requirements + +This repo uses [`renv`](https://rstudio.github.io/renv/articles/renv.html) for dependency management. + +If you haven't used `renv` before, install it using: + +```R +install.packages("renv") +``` + +If you open the R project `berd-reproducible-research-course.Rproj` for the first time in RStudio, `renv` should be automatically activated. +You are asked to install the packages listed in [`renv.lock`](renv.lock): + +```R +# Bootstrapping renv 1.0.0 --------------------------------------------------- +- Downloading renv ... OK +- Installing renv ... OK + +- Project '~/edu/berd-reproducible-research-course' loaded. [renv 1.0.0] +- None of the packages recorded in the lockfile are installed. +- Using `renv::restore()` to restore the project library. +Do you want to proceed? [Y/n]: Y +``` + ## Viewing the booklet To view the booklet, please run