-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathex_init_snapshot.qmd
26 lines (17 loc) · 1.42 KB
/
ex_init_snapshot.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
title: "Initialize and Snapshot"
---
```{r, echo=FALSE}
library(magrittr)
```
The following examples will guide you through the process of initializing a project with {renv} and then snapshotting the project to capture the packages used in the project. It is **recommended** that you fork the [intro-to-renv-exercises](https://github.com/lmu-osc/introduction-to-renv-exercises) repository to your GitHub account and clone it to your local machine to follow along with the examples. This will allow the course facilitators to see your work, provide feedback, and troubleshoot with you as needed.
However, this is not strictly necessary. You can also follow along by creating a new project on your local machine and initializing {renv} in that project. If you choose to do this, you can skip the forking and cloning steps and instead download a zip file of the repository.
# Getting Started
The exercises for initiating and snapshotting a project can be found in the `init-snapshot-exercises` folder of the [intro-to-renv-exercises](https://github.com/lmu-osc/introduction-to-renv-exercises) repo.
```{r, results='asis', echo=FALSE}
# To make changes to the instructions, go to the init-snapshot-exercises-instructions.md file in the intro-to-renv-exercises repository!
library(httr)
url="https://raw.githubusercontent.com/lmu-osc/introduction-to-renv-exercises/main/init-snapshot-exercises/README.md"
response=GET(url)
cat(content(response))
```