Skip to content

Commit 7d16860

Browse files
authored
destination file should be be overwritten
1 parent 21f255b commit 7d16860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/download.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ download_hydat <- function(dl_hydat_here = NULL, ask = TRUE) {
123123
## Move to final resting place and rename to consistent name
124124
file.copy(
125125
list.files(tempdir, pattern = "\\.sqlite3$", full.names = TRUE),
126-
hydat_path
126+
hydat_path,
127+
overwrite = TRUE
127128
)
128129

129130

0 commit comments

Comments
 (0)