-
Notifications
You must be signed in to change notification settings - Fork 82
/
personal-radmin.qmd
49 lines (29 loc) · 1.47 KB
/
personal-radmin.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: "Personal R Administration"
---
The goal of these chapters is to help you build a system for answering questions like:
- How do I upgrade the version of R I'm using for this project?
- How do I track which package versions I'm using for this project?
- How do I move this project from one computer to another?
across many projects and many computers.
This system takes the principles articulated in "Holistic Workflow" and extends them to all the ways you might use R, but also to other software you use.
## The Project Onion
Going all in on the project-oriented workflow means adopting tools that make it possible to programmatically manage each of the layers of project setup, which can be visualized via the "project onion":
![the project onion](./img/project-onion.svg "package managers install language managers install language verions which install environments")
### package managers
### language manager
### language version
### environment manager
### your project
## The Project Onion: R
![the project onion, R](./img/r-project-onion.svg "scoop install rig; rig install 4.3.0; rig rstudio projects/myproject/renv.lock")
## The Workflow Cycle
```{mermaid}
flowchart LR
start(starting R)
packages(installing R packages)
repro(creating reproducible environments)
installing("installing | upgrading R")
start --> packages --> repro --> installing --> start
```
If you go all in on the project-oriented workflow, installing R and upgrading R are the same operation.