We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aabb2d commit 45ef9bbCopy full SHA for 45ef9bb
R/telechargerFichier.R
@@ -41,7 +41,7 @@ telechargerFichier <- function(donnees, date=NULL, telDir=getOption("doremifasol
41
42
if (!file.exists(nomFichier) || force) {
43
if (!curl::has_internet()) stop("aucune connexion Internet")
44
- res <- try(httr::GET(caract$lien, httr::write_disk(nomFichier), httr::progress()))
+ res <- try(httr::GET(caract$lien, httr::write_disk(nomFichier, overwrite = TRUE), httr::progress()))
45
if (res$status_code == 200) dl <- 0
46
if (tools::md5sum(nomFichier) != caract$md5) {
47
warning("Fichier sur insee.fr modifi\u00e9 ou corruption lors du t\u00e9l\u00e9chargement.")
0 commit comments