-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
61 lines (43 loc) · 1.43 KB
/
README.Rmd
File metadata and controls
61 lines (43 loc) · 1.43 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
58
59
60
---
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%"
)
```
# opensky
<!-- badges: start -->
[](https://github.com/emptyfield-ds/opensky/actions)
[](https://app.codecov.io/gh/emptyfield-ds/opensky?branch=main)
<!-- badges: end -->
opensky provides functions to include templates for xaringan slides, ggplot2 helpers, and R Markdown documents.
## Installation
You can install the latest version of opensky with:
``` r
options(repos = c(
emptyfieldds = "https://emptyfield-ds.r-universe.dev",
CRAN = "https://cran.rstudio.com/"
))
install.packages("opensky")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r}
library(opensky)
proj_dir <- fs::file_temp()
fs::dir_create(proj_dir)
usethis::proj_set(proj_dir, force = TRUE)
# create and open kakashi-themed xaringan slides
use_xaringan_kakashi("slides")
# create and open tozan-themed xaringan slides
use_xaringan_tozan("slides2")
# create and open a blank R Markdown template with reasonable chunk defaults
use_blank_rmd("slides3")
# create `ggplot2-utils.R`
use_ggplot2_utils()
```