-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
58 lines (40 loc) · 1.62 KB
/
README.Rmd
File metadata and controls
58 lines (40 loc) · 1.62 KB
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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rpkg.workshop
<!-- badges: start -->
[](https://github.com/emptyfield-ds/rpkg.workshop/actions)
<!-- badges: end -->
The goal of rpkg.workshop is to download learning materials for Developing R Packages, as well as to install any required packages. rpkg.workshop also allows you to open a given module in RStudio Cloud.
## Installation
You can install the latest version of rpkg.workshop with:
``` r
options(repos = c(
emptyfieldds = "https://emptyfield-ds.r-universe.dev",
CRAN = "https://cran.rstudio.com/"
))
install.packages("rpkg.workshop")
```
## Installing modules
`use_module()` will install the materials for a given module on your computer. Then, it will open a new RStudio Project containing the files you'll need.
``` r
rpkg.workshop::use_module("module_name")
```
By default, this package downloads the materials to a conspicuous place like your Desktop. You can also tell `use_module()` exactly where to put the materials with `destdir`:
``` r
rpkg.workshop::use_module("module_name", destdir = "a/path/on/your/computer")
```
## Opening modules in RStudio Cloud
`browse_cloud()` opens a module in RStudio Cloud, where the materials and all necessary tooling will be pre-installed. This requires an RStudio Cloud account.
``` r
rpkg.workshop::browse_cloud("module_name")
```