diff --git a/R/download.R b/R/download.R index be8c70d2..fbf159ab 100644 --- a/R/download.R +++ b/R/download.R @@ -344,8 +344,7 @@ external_download <- function(dataset = NULL, source = NULL, year = NULL, stringr::str_replace("\\$year\\$", as.character(param$year)) } if (!is.null(param$state)) { - path <- path %>% - stringr::str_replace("\\$state\\$", param$state) + path <- sub("$state$", param$state, path, fixed = TRUE) } if (!is.null(param$file_name)) { path <- path %>%