-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
67 lines (45 loc) · 2.03 KB
/
README.Rmd
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
---
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%"
)
```
# nightvale
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://github.com/mcguinlu/nightvale/actions)
<!-- badges: end -->
## Background
[Welcome to Night Vale](http://www.welcometonightvale.com/) is a twice-monthly podcast in the style of community updates for the small desert town of Night Vale, with heavy themes of surreal humor and horror. A key and recurring part of the show is "Today's Proverb". This package provides the metadata and proverb for each episode as a dataset, in addition to a function to return a nicely formatted proverb to the console.
## Installation
This package is a GitHub only package, and can be installed using:
``` {r, eval = FALSE}
# install.packages("devtools")
devtools::install_github("mcguinlu/nightvale")
```
## Usage
### Access the data
```{r eval=TRUE}
library(nightvale)
head(proverb_data)
```
### Get a random proverb
```{r eval=TRUE}
proverb()
```
### Get a specific proverb
```{r eval=TRUE}
proverb(22)
```
## Git Scraping
The Welcome to Night Vale podcast continues to release a new show every two weeks. In order to capture the proverbs from these new episodes, this project also contains a GitHub Action that automatically re-scrapes the [community-maintained table of proverbs](https://nightvale.fandom.com/wiki/List_of_Proverbs) every week. When new proverbs are identified, the proverb dataset included as part of this package is updated.
To get the most up-to-date version of the proverb dataset, simply re-install the package using:
``` {r, eval = FALSE}
devtools::install_github("mcguinlu/nightvale")
```