Skip to content

Commit 1c9b847

Browse files
committed
api key add on
1 parent 197a505 commit 1c9b847

8 files changed

+19
-8
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ output:
4747
toc: true
4848
---
4949

50-
```{r, echo=FALSE}
50+
```{r, include = FALSE}
51+
library(covidcast)
5152
options(covidcast.auth = Sys.getenv("API_KEY"))
5253
```
5354

content/blog/2020-09-18-google-survey.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ survey.
137137

138138
```{r, include = FALSE}
139139
knitr::opts_chunk$set(cache = TRUE, autodep = TRUE, cache.comments = TRUE)
140+
library(covidcast)
141+
options(covidcast.auth = Sys.getenv("API_KEY"))
140142
```
141143

142144
```{r, message = FALSE, warning = FALSE, fig.width = 10, fig.height = 5, out.extra = 'class="wide-figure"'}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ output:
3030
blogdown::html_page:
3131
toc: true
3232
---
33-
```{r, echo=FALSE}
33+
```{r, include = FALSE}
34+
library(covidcast)
3435
options(covidcast.auth = Sys.getenv("API_KEY"))
3536
```
3637
Beginning in early April 2020, the `r blogdown::shortcode_html("reflink", "/", "Delphi group")` has

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ Below, we plot two maps to explore the indicator. On the left is a heatmap repre
6868

6969
```{r, include = FALSE}
7070
knitr::opts_chunk$set(cache = TRUE, autodep = TRUE, cache.comments = TRUE)
71+
library(covidcast)
72+
options(covidcast.auth = Sys.getenv("API_KEY"))
7173
```
7274

7375
```{r, message = FALSE, warning = FALSE, fig.width = 10, fig.height = 4, out.extra = 'class="wide-figure"'}
7476
library(covidcast)
7577
library(dplyr)
7678
library(ggplot2)
7779
library(gridExtra)
78-
options(covidcast.auth = Sys.getenv("API_KEY"))
7980
8081
# Fetch DV % CLI signal and USAFacts confirmed case incidence proportion at
8182
# the state level

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ output:
2121
toc: true
2222
---
2323

24-
```{r, echo=FALSE}
24+
```{r, include = FALSE}
25+
library(covidcast)
2526
options(covidcast.auth = Sys.getenv("API_KEY"))
2627
```
2728

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ output:
2727
toc: true
2828
---
2929

30-
```{r, echo=FALSE}
31-
options(covidcast.auth = Sys.getenv("API_KEY"))
32-
```
3330

3431
```{r setup, include=FALSE}
3532
knitr::opts_chunk$set(collapse = TRUE)
33+
library(covidcast)
34+
options(covidcast.auth = Sys.getenv("API_KEY"))
3635
```
3736

3837
Most pandemic research has focused on questions related to prediction such as:

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ output:
2929
blogdown::html_page:
3030
toc: true
3131
---
32-
```{r, echo=FALSE}
32+
```{r, include = FALSE}
33+
library(covidcast)
3334
options(covidcast.auth = Sys.getenv("API_KEY"))
3435
```
3536
With pandemic fatigue setting in across the United States after a long year

content/blog/_2021-04-20-jj-vaccine.Rmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ output:
2828
toc: true
2929
---
3030

31+
```{r, include = FALSE}
32+
library(covidcast)
33+
options(covidcast.auth = Sys.getenv("API_KEY"))
34+
```
35+
3136
```{r, echo=FALSE, message=FALSE, warning=FALSE}
3237
## This post's filename starts with _ so it is not run by blogdown during the
3338
## post build process, since it depends on private microdata. Instead, we commit

0 commit comments

Comments
 (0)