Skip to content

Commit 8184872

Browse files
committed
update bare cols to str; import pronoun and operator
1 parent 667209e commit 8184872

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

R/update_hub_target_data.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ update_hub_target_data <- function(
8787
value = "observation",
8888
state = "jurisdiction"
8989
) |>
90-
dplyr::arrange(state) |>
90+
dplyr::arrange(.data$state) |>
9191
dplyr::select("state", "date", "value", "location") |>
9292
forecasttools::write_tabular(
9393
fs::path(output_dirpath, legacy_file_name)
@@ -104,10 +104,10 @@ update_hub_target_data <- function(
104104
ext = "csv"
105105
)
106106
) |>
107-
dplyr::filter(county == "All") |>
107+
dplyr::filter(.data$county == "All") |>
108108
dplyr::select(
109-
week_end,
110-
geography,
109+
"week_end",
110+
"geography",
111111
dplyr::all_of(nssp_col_name)
112112
)
113113
} else {
@@ -132,7 +132,7 @@ update_hub_target_data <- function(
132132
) |>
133133
dplyr::filter(.data$location %in% !!included_locations) |>
134134
dplyr::select(dplyr::all_of(hubverse_ts_req_cols)) |>
135-
dplyr::arrange(date, location)
135+
dplyr::arrange(.data$date, .data$location)
136136

137137
output_file <- fs::path(output_dirpath, "time-series", ext = "parquet")
138138
if (fs::file_exists(output_file)) {

R/utils.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#' @importFrom rlang .data :=
2+
NULL
3+
14
#' Get hub name for a given disease.
25
#'
36
#' Converts disease identifier to proper hub name format.

0 commit comments

Comments
 (0)