Skip to content

Commit dab876a

Browse files
link fill (#309)
1 parent db6654f commit dab876a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/download.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,7 @@ external_download <- function(dataset = NULL, source = NULL, year = NULL,
344344
stringr::str_replace("\\$year\\$", as.character(param$year))
345345
}
346346
if (!is.null(param$state)) {
347-
path <- path %>%
348-
stringr::str_replace("\\$state\\$", param$state)
347+
path <- sub("$state$", param$state, path, fixed = TRUE)
349348
}
350349
if (!is.null(param$file_name)) {
351350
path <- path %>%

0 commit comments

Comments
 (0)