From 47e0e5a0142ea690edfb735811652ba76442079e Mon Sep 17 00:00:00 2001 From: f754b224d0f39e1e5985bdfc02ba215f Date: Fri, 2 Aug 2024 08:38:56 +0000 Subject: [PATCH] =?UTF-8?q?Conditionnement=20du=20t=C3=A9l=C3=A9chargement?= =?UTF-8?q?=20du=20fichier=20csv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module3/exo1/analyse-syndrome-grippal.Rmd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module3/exo1/analyse-syndrome-grippal.Rmd b/module3/exo1/analyse-syndrome-grippal.Rmd index bcb939e..4f5f301 100644 --- a/module3/exo1/analyse-syndrome-grippal.Rmd +++ b/module3/exo1/analyse-syndrome-grippal.Rmd @@ -26,8 +26,9 @@ Les données de l'incidence du syndrome grippal sont disponibles du site Web du ```{r} data_url = "http://www.sentiweb.fr/datasets/incidence-PAY-3.csv" data_file = "incidence-PAY-3.csv" -download.file(data_url,data_file,method = "auto") - +if (!file.exists(data_file)) { + download.file(data_url,data_file,method = "auto") +} ``` Voici l'explication des colonnes donnée sur le [sur le site d'origine](https://ns.sentiweb.fr/incidence/csv-schema-v1.json): -- 2.18.1