From 65f5d3d51c7ac0014e68cfa6dab1e2c9e381b626 Mon Sep 17 00:00:00 2001 From: Degoot-AM Date: Fri, 26 Apr 2024 08:30:02 +0000 Subject: [PATCH] fix zip data issues --- episodes/read-cases.Rmd | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/episodes/read-cases.Rmd b/episodes/read-cases.Rmd index 29db0d9a..e746c555 100644 --- a/episodes/read-cases.Rmd +++ b/episodes/read-cases.Rmd @@ -55,7 +55,6 @@ head(ebola_confirmed, 5) library("rio") library("here") # read data -print(getwd()) case_data <- rio::import(here::here("built", "data", "ebola_cases.csv")) # preview data head(case_data, 5) @@ -72,16 +71,22 @@ Take 1 minute: ::::::::::::::::: hint -You can check the [full list of supported file formats](http://gesistsa.github.io/rio/#supported-file-formats) in the -`{rio}` package on the package website. Here is a selection of some key ones. You can also download a zip file for -[Marburg outbreak](https://github.com/epiverse-trace/tutorials-early/blob/md-outputs-PR-39/data/Marburg.zip) +You can check the [full list of supported file formats](http://gesistsa.github.io/rio/#supported-file-formats) +in the `{rio}` package on the package website. Here is a selection of some key ones: + + +```{r, eval=FALSE} +rio::install_formats() +``` + +:::::::::::::::::::::: ::::::::::::::::: solution ```{r,eval=FALSE} rio::import(here::here("some", "where", "downto", "path", "file_name.zip")) ``` - +Click [here](https://github.com/epiverse-trace/tutorials-early/tree/md-outputs-PR-39/data/Marburg.zip) to download a zip file containing data for Marburg outbreak and then import it to your working environment. :::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::