Skip to content

Commit b4df472

Browse files
committed
fix: source metadata tibble
1 parent 8155c93 commit b4df472

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

R/covidcast.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ covidcast_epidata <- function(base_url = global_base_url, timeout_seconds = 30)
170170
#' @export
171171
as_tibble.covidcast_data_source_list <- function(x, ...) {
172172
tib <- list()
173-
tib$source <- unname(map_chr(x$sources, "source"))
174-
tib$name <- unname(map_chr(x$sources, "name"))
175-
tib$description <- unname(map_chr(x$sources, "description"))
176-
tib$reference_signal <- unname(map_chr(x$sources, "reference_signal"))
177-
tib$license <- unname(map_chr(x$sources, "license"))
178-
tib <- as_tibble(tib)
173+
tib$source <- unname(map_chr(x, "source"))
174+
tib$name <- unname(map_chr(x, "name"))
175+
tib$description <- unname(map_chr(x, "description"))
176+
tib$reference_signal <- unname(map_chr(x, "reference_signal"))
177+
tib$license <- unname(map_chr(x, "license"))
178+
as_tibble(tib)
179179
}
180180

181181
#' @export

0 commit comments

Comments
 (0)