# NOT RUN {
# set up a data cache
start_using_memoise()
# download all national data from the WHO
get_national_data(source = "who")
# download data for Canada keeping all processing steps
get_national_data(countries = "canada", source = "ecdc")
# download data for Canada from the JHU and return the full class
jhu <- get_national_data(countries = "canada", source = "jhu", class = TRUE)
jhu
# return the JHU data for canada
jhu$return()
# check which regions the JHU supports national data for
jhu$available_regions()
# filter instead for France (and then reprocess)
jhu$filter("France")
jhu$process()
# explore the structure of the stored JHU data
jhu$data
# }
Run the code above in your browser using DataLab