Skip to content

Commit 5df987a

Browse files
authored
rename utility function get_unique_targets (#146)
1 parent 415218a commit 5df987a

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export(get_nhsn_col_name)
1717
export(get_nssp_col_name)
1818
export(get_target_data_type)
1919
export(get_target_label)
20-
export(get_unique_targets)
20+
export(get_unique_hub_targets)
2121
export(included_locations)
2222
export(is_ed_target)
2323
export(is_hosp_target)

R/generate_hub_baselines.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ generate_hub_baseline <- function(
157157
)
158158
}
159159

160-
available_targets <- get_unique_targets(base_hub_path)
160+
available_targets <- get_unique_hub_targets(base_hub_path)
161161

162162
if (is.null(targets)) {
163163
targets <- available_targets

R/generate_hub_ensemble.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ generate_hub_ensemble <- function(
107107
)
108108
}
109109

110-
available_targets <- get_unique_targets(base_hub_path)
110+
available_targets <- get_unique_hub_targets(base_hub_path)
111111

112112
if (is.null(targets)) {
113113
targets <- available_targets

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ is_ed_target <- function(target) {
187187
#' @param base_hub_path Path to the base hub directory.
188188
#' @return Character vector of unique target names.
189189
#' @export
190-
get_unique_targets <- function(base_hub_path) {
190+
get_unique_hub_targets <- function(base_hub_path) {
191191
targets <- hubData::connect_target_timeseries(base_hub_path) |>
192192
dplyr::distinct(target) |>
193193
dplyr::collect() |>
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)