Skip to content

Commit 693c04b

Browse files
authored
Merge pull request #256 from cmu-delphi/ds/fix
ci: document readme and add trigger buttons to all actions
2 parents 6c82bc6 + aff0c52 commit 693c04b

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

.github/workflows/R-CMD-check.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main, dev]
66
pull_request:
77
branches: [main, dev]
8+
workflow_dispatch:
89

910
name: R-CMD-check
1011

.github/workflows/document.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
paths: ["R/**"]
5+
paths: ["R/**", "README.Rmd"]
6+
workflow_dispatch:
67

78
name: Document
89

.github/workflows/lint.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [main, dev]
66
pull_request:
77
branches: [main, dev]
8+
workflow_dispatch:
89

910
name: lint
1011

.github/workflows/style.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
"**.[rR]nw",
1111
"**.[rR]profile",
1212
]
13+
workflow_dispatch:
1314

1415
name: Style
1516

README.Rmd

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ forecasting models. We also provide packages for downstream data processing
4545

4646
## Usage
4747

48+
```{r, echo=FALSE}
49+
# This is so that if you have USE_EPIDATR_CACHE=TRUE in your .Renviron, the
50+
# startup message does not get included in the README.md when you build this.
51+
suppressPackageStartupMessages(library(epidatr))
52+
```
53+
4854
```{r}
4955
library(epidatr)
5056
# Obtain the smoothed covid-like illness (CLI) signal from Delphi's US COVID-19

README.md

-7
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ also provide packages for downstream data processing
3939

4040
``` r
4141
library(epidatr)
42-
#> ! epidatr cache is being used (set env var EPIDATR_USE_CACHE=FALSE if not
43-
#> intended).
44-
#> ℹ The cache directory is /fasterHome/workingDataDir/epidatr.
45-
#> ℹ The cache will be cleared after 1 day and will be pruned if it exceeds 1024
46-
#> MB.
47-
#> ℹ The log of cache transactions is stored at
48-
#> /fasterHome/workingDataDir/epidatr/logfile.txt.
4942
# Obtain the smoothed covid-like illness (CLI) signal from Delphi's US COVID-19
5043
# Trends and Impact Survey (CTIS), in partnership with Facebook, as it was on
5144
# April 10, 2021 for the US at the national level

0 commit comments

Comments
 (0)