Skip to content

Commit 353dfcb

Browse files
authored
Merge pull request #187 from cmu-delphi/lcb/use-renamed-delphi.epidata-package-epidatr
Use renamed `delphi.epidata` pkg `epidatr` (& its new repo name)
2 parents f7309f2 + ced0915 commit 353dfcb

13 files changed

+21
-21
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Imports:
4141
vctrs
4242
Suggests:
4343
covidcast,
44-
delphi.epidata,
44+
epidatr,
4545
ggplot2,
4646
knitr,
4747
outbreaks,
@@ -52,7 +52,7 @@ Suggests:
5252
VignetteBuilder:
5353
knitr
5454
Remotes:
55-
dajmcdon/delphi.epidata,
55+
cmu-delphi/epidatr,
5656
reconverse/outbreaks
5757
Config/testthat/edition: 3
5858
Encoding: UTF-8

data-raw/archive_cases_dv_subset.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library(delphi.epidata)
1+
library(epidatr)
22
library(epiprocess)
33
library(data.table)
44
library(dplyr)

data-raw/incidence_num_outlier_example.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library(delphi.epidata)
1+
library(epidatr)
22
library(epiprocess)
33
library(dplyr)
44
library(tidyr)

data-raw/jhu_csse_county_level_subset.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library(delphi.epidata)
1+
library(epidatr)
22
library(covidcast)
33
library(epiprocess)
44
library(dplyr)

data-raw/jhu_csse_daily_subset.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library(delphi.epidata)
1+
library(epidatr)
22
library(epiprocess)
33
library(dplyr)
44

vignettes/advanced.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ to demonstrate the last point in a more realistic setting. First, we fetch the
192192
versioned data and build the archive.
193193

194194
```{r, message = FALSE, warning = FALSE, eval =FALSE}
195-
library(delphi.epidata)
195+
library(epidatr)
196196
library(data.table)
197197
library(ggplot2)
198198
theme_set(theme_bw())

vignettes/aggregation.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ kinds of tasks with `epi_df` objects. We'll work with county-level reported
1313
COVID-19 cases in MA and VT.
1414

1515
```{r, message = FALSE, eval= FALSE, warning= FALSE}
16-
library(delphi.epidata)
16+
library(epidatr)
1717
library(covidcast)
1818
library(epiprocess)
1919
library(dplyr)
@@ -41,7 +41,7 @@ x <- covidcast(
4141
The data contains 16,212 rows and 5 columns.
4242

4343
```{r, echo=FALSE, warning=FALSE, message=FALSE}
44-
library(delphi.epidata)
44+
library(epidatr)
4545
library(covidcast)
4646
library(epiprocess)
4747
library(dplyr)

vignettes/archive.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on its [API documentation
2626
page](https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/doctor-visits.html).
2727

2828
```{r, message = FALSE, warning = FALSE, eval=FALSE}
29-
library(delphi.epidata)
29+
library(epidatr)
3030
library(epiprocess)
3131
library(data.table)
3232
library(dplyr)
@@ -44,7 +44,7 @@ dv <- covidcast(
4444
```
4545

4646
```{r, echo=FALSE, message=FALSE, warning=FALSE}
47-
library(delphi.epidata)
47+
library(epidatr)
4848
library(epiprocess)
4949
library(data.table)
5050
library(dplyr)
@@ -64,7 +64,7 @@ has (at least) the following columns:
6464
the data for January 14, 2022 that were available one day later.
6565

6666
As we can see from the above, the data frame returned by
67-
`delphi.epidata::covidcast()` has the columns required for the `epi_archive`
67+
`epidatr::covidcast()` has the columns required for the `epi_archive`
6868
format, with `issue` playing the role of `version`. We can now use
6969
`as_epi_archive()` to bring it into `epi_archive` format. For removal of
7070
redundant version updates in `as_epi_archive` using compactify, please refer

vignettes/correlation.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ state-level COVID-19 case and death rates, smoothed using 7-day trailing
1616
averages.
1717

1818
```{r, message = FALSE, warning = FALSE}
19-
library(delphi.epidata)
19+
library(epidatr)
2020
library(epiprocess)
2121
library(dplyr)
2222
```

vignettes/epiprocess.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ A data frame or tibble that has `geo_value` and `time_value` columns can be
5050
converted into an `epi_df` object, using the function `as_epi_df()`. As an
5151
example, we'll work with daily cumulative COVID-19 cases from four U.S. states:
5252
CA, FL, NY, and TX, over time span from mid 2020 to early 2022, and we'll use
53-
the [`delphi.epidata`](https://github.com/cmu-delphi/delphi-epidata-r) package
53+
the [`epidatr`](https://github.com/cmu-delphi/epidatr) package
5454
to fetch this data from the [COVIDcast
5555
API](https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html).
5656

5757
```{r, message = FALSE}
58-
library(delphi.epidata)
58+
library(epidatr)
5959
library(epiprocess)
6060
library(dplyr)
6161
library(withr)
@@ -72,7 +72,7 @@ cases <- covidcast(
7272
colnames(cases)
7373
```
7474

75-
As we can see, a data frame returned by `delphi.epidata::covidcast()` has the
75+
As we can see, a data frame returned by `epidatr::covidcast()` has the
7676
columns required for an `epi_df` object (along with many others). We can use
7777
`as_epi_df()`, with specification of some relevant metadata, to bring the data
7878
frame into `epi_df` format.

vignettes/growth_rate.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ current vignette, applied to state-level daily reported COVID-19 cases from GA
1515
and PA, smoothed using a 7-day trailing average.
1616

1717
```{r, message = FALSE, warning = FALSE}
18-
library(delphi.epidata)
18+
library(epidatr)
1919
library(epiprocess)
2020
library(dplyr)
2121
library(tidyr)

vignettes/outliers.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ apply them to `epi_df` objects. We'll demonstrate this using state-level daily
1515
reported COVID-19 case counts from FL and NJ.
1616

1717
```{r, message = FALSE, eval= FALSE}
18-
library(delphi.epidata)
18+
library(epidatr)
1919
library(epiprocess)
2020
library(dplyr)
2121
library(tidyr)
@@ -37,7 +37,7 @@ x <- covidcast(
3737
The dataset has 730 rows and 3 columns.
3838

3939
```{r, echo=FALSE, warning=FALSE, message=FALSE}
40-
library(delphi.epidata)
40+
library(epidatr)
4141
library(epiprocess)
4242
library(dplyr)
4343
library(tidyr)

vignettes/slide.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ in this vignette.
2626

2727
As in getting started guide, we'll fetch daily reported COVID-19 cases from CA,
2828
FL, NY, and TX (note: here we're using new, not cumulative cases) using the
29-
[`delphi.epidata`](https://github.com/cmu-delphi/delphi-epidata-r) package,
29+
[`epidatr`](https://github.com/cmu-delphi/epidatr) package,
3030
and then convert this to `epi_df` format.
3131

3232
```{r, message = FALSE, warning=FALSE}
33-
library(delphi.epidata)
33+
library(epidatr)
3434
library(epiprocess)
3535
library(dplyr)
3636
```

0 commit comments

Comments
 (0)