Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
renv_tutorial/exercise/exercise_renv.Rmd
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (21 sloc)
705 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "renv exercise" | |
author: "Jonas Hagenberg" | |
date: "17.11.2021" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
knitr::opts_chunk$set(echo = TRUE) | |
``` | |
# Part A | |
1. Create a new RStudio project (with github) and initialise `renv` | |
2. Copy `example_script.R` into your project and install the necessary packages | |
3. Execute the code in `example_script.R` | |
4. Update the `renv` lockfile | |
5. Push the changes to github | |
6. Share the repository with your partner | |
# Part B | |
1. Clone the repository you got from your partner | |
2. If not done already, install `renv` | |
3. Restore the package library with `renv::restore()` | |
4. Execute the code in `example_script.R` and compare the output of `sessionInfo()` |