Skip to content

Commit f5e39bf

Browse files
committed
add Sys.getenv to rmd files
1 parent 78827e0 commit f5e39bf

7 files changed

+6
-7
lines changed

.github/workflows/blog.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
run: |
5252
printenv
5353
echo $API_KEY
54-
echo ${{ secrets.DELPHI_GITHUB_ACTIONS_EPIDATA_API_KEY }} | sed 's/./& /g'
5554
npm run build:blog
5655
- uses: actions/upload-artifact@v3
5756
with:

content/blog/2020-08-26-fb-survey.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ output:
4848
---
4949

5050
```{r, echo=FALSE}
51-
options(covidcast.auth = API_KEY)
51+
options(covidcast.auth = Sys.getenv("API_KEY"))
5252
```
5353

5454
Since April 2020, in collaboration with Facebook,

content/blog/2020-10-06-survey-wave-4.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ output:
3131
toc: true
3232
---
3333
```{r, echo=FALSE}
34-
options(covidcast.auth = API_KEY)
34+
options(covidcast.auth = Sys.getenv("API_KEY"))
3535
```
3636
Beginning in early April 2020, the `r blogdown::shortcode_html("reflink", "/", "Delphi group")` has
3737
conducted a major survey to track COVID-19 across the United States. With the

content/blog/2020-10-14-dv-signal.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ library(covidcast)
7575
library(dplyr)
7676
library(ggplot2)
7777
library(gridExtra)
78-
options(covidcast.auth = API_KEY)
78+
options(covidcast.auth = Sys.getenv("API_KEY"))
7979
8080
# Fetch DV % CLI signal and USAFacts confirmed case incidence proportion at
8181
# the state level

content/blog/2020-12-10-masks-public.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ output:
2222
---
2323

2424
```{r, echo=FALSE}
25-
options(covidcast.auth = API_KEY)
25+
options(covidcast.auth = Sys.getenv("API_KEY"))
2626
```
2727

2828
As COVID cases and deaths continue to rise in the United States, we are

content/blog/2021-01-15-causal-effect-mobility.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ output:
2828
---
2929

3030
```{r, echo=FALSE}
31-
options(covidcast.auth = API_KEY)
31+
options(covidcast.auth = Sys.getenv("API_KEY"))
3232
```
3333

3434
```{r setup, include=FALSE}

content/blog/2021-01-22-holiday-surveys.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ output:
3030
toc: true
3131
---
3232
```{r, echo=FALSE}
33-
options(covidcast.auth = API_KEY)
33+
options(covidcast.auth = Sys.getenv("API_KEY"))
3434
```
3535
With pandemic fatigue setting in across the United States after a long year
3636
filled with uncertainty, many felt the temptation to celebrate a “normal”

0 commit comments

Comments
 (0)