-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.qmd
68 lines (55 loc) · 1.7 KB
/
setup.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
title: "Setup Instructions"
---
## Install a recent R version
You can download the latest version of R from <https://www.r-project.org/>. Ideally you should have an R version \> 4.0.0. Otherwise you might experience issues with using/installing some of the packages needed.
## Install RStudio
Install Rstudio desktop from <https://posit.co/download/rstudio-desktop/>
## Install R dependencies
Use the following code to install the packages we will be working with in one go.
```{r}
#| eval: false
pkgs <- c(
"arrow",
"beeswarm",
"bench",
"benchmarkme",
"biglm",
"data.table",
"DBI",
"dbplyr",
"doFuture",
"dplyr",
"dtplyr",
"duckdb",
"float",
"fs",
"fst",
"furrr",
"future",
"future.apply",
"gt",
"ggplot2",
"lobstr",
"microbenchmark",
"pryr",
"purrr",
"qs",
"readr",
"RSQLite",
"skimr",
"tibble",
"tictoc",
"usethis",
"vroom"
)
install.packages(pkgs)
```
If you are having problems installing the `arrow` package, have a look at the [package installation instructions](https://arrow.apache.org/docs/r/#installation).
### Download course materials
The course materials can be found at <https://github.com/r-rse/optimise-r-materials>.
To download the materials you can use `usethis` function `use_course()`. This will download a `zip` file of the repository and unzip it for you. If you do not supply a `destdir` path, as below, it will ask you whether you want it to download it to your `Desktop` by default. If you prefer it to be downloaded to another destination, just supply a path to `destdir`.
```{r}
#| eval: false
usethis::use_course("r-rse/optimise-r-materials")
```