From 5c805d7d34eaac7eec06bf73396accbe4049c782 Mon Sep 17 00:00:00 2001
From: Carine Rey <carine.rey@ens-lyon.fr>
Date: Tue, 6 Sep 2022 16:37:37 +0200
Subject: [PATCH] fix error as the csv file is not yet online (session3)

---
 session_3/session_3.Rmd | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/session_3/session_3.Rmd b/session_3/session_3.Rmd
index 10e14ed..3e08297 100644
--- a/session_3/session_3.Rmd
+++ b/session_3/session_3.Rmd
@@ -370,9 +370,18 @@ Use the `openxlsx` package to save the [https://can.gitbiopages.ens-lyon.fr/R_ba
 
 <details><summary>Solution</summary>
 <p>
-```{r load_xlsx}
+2 solutions :
+
+Use directly the url
+```{r load_xlsx_url, eval = F}
 gapminder <- read.xlsx("https://can.gitbiopages.ens-lyon.fr/R_basis/session_3/gapminder.xlsx")
 ```
+
+Dowload the file, save it in the same directory as your script then use the local path
+```{r load_xlsx}
+gapminder <- read.xlsx("gapminder.xlsx")
+```
+
 </p>
 </details>
 
-- 
GitLab