Skip to content

Commit

Permalink
refactor: remove Suggests dependence on covidcast
Browse files Browse the repository at this point in the history
* just download the files, don't import covidcast
* covidcast depends on sf which is tough to install
  • Loading branch information
dshemetov committed Oct 3, 2024
1 parent 6237036 commit 1cd4cb0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ Imports:
vctrs,
waldo
Suggests:
covidcast,
devtools,
epidatr,
knitr,
Expand Down
4 changes: 1 addition & 3 deletions data-raw/jhu_csse_county_level_subset.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
library(epidatr)
library(covidcast)
library(epiprocess)
library(dplyr)

# Use covidcast::county_census to get the county and state names
y <- covidcast::county_census %>%
y <- read_csv("https://github.com/cmu-delphi/covidcast/raw/c89e4d295550ba1540d64d2cc991badf63ad04e5/Python-packages/covidcast-py/covidcast/geo_mappings/county_census.csv") %>%

Check warning on line 5 in data-raw/jhu_csse_county_level_subset.R

View workflow job for this annotation

GitHub Actions / lint

file=data-raw/jhu_csse_county_level_subset.R,line=5,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 175 characters.
filter(STNAME %in% c("Massachusetts", "Vermont"), STNAME != CTYNAME) %>%
select(geo_value = FIPS, county_name = CTYNAME, state_name = STNAME)

Expand Down
4 changes: 1 addition & 3 deletions vignettes/aggregation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ COVID-19 cases in MA and VT.

```{r, message = FALSE, eval= FALSE, warning= FALSE}
library(epidatr)
library(covidcast)
library(epiprocess)
library(dplyr)
# Use covidcast::county_census to get the county and state names
y <- covidcast::county_census %>%
y <- y <- read_csv("https://github.com/cmu-delphi/covidcast/raw/c89e4d295550ba1540d64d2cc991badf63ad04e5/Python-packages/covidcast-py/covidcast/geo_mappings/county_census.csv") %>%

Check warning on line 21 in vignettes/aggregation.Rmd

View workflow job for this annotation

GitHub Actions / lint

file=vignettes/aggregation.Rmd,line=21,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 180 characters.
filter(STNAME %in% c("Massachusetts", "Vermont"), STNAME != CTYNAME) %>%
select(geo_value = FIPS, county_name = CTYNAME, state_name = STNAME)
Expand All @@ -41,7 +40,6 @@ The data contains 16,212 rows and 5 columns.

```{r, echo=FALSE, warning=FALSE, message=FALSE}
library(epidatr)
library(covidcast)
library(epiprocess)
library(dplyr)
Expand Down

0 comments on commit 1cd4cb0

Please sign in to comment.