knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of extractRC is to easily extract files from REACH's Resource Centre (RC)
You can install extractRC from GitHub with:
# install.packages("devtools") devtools::install_github("ElliottMess/RC_data_extraction")
Extract all URLs to files associated with a research
library(extractRC) search_URL <- "https://www.reachresourcecentre.info/search/?search=1&initiative%5B%5D=reach&ptype%5B%5D=dataset-database&dates=&keywords=JMMI" all_URLs <- RC_extract_allPages(search_URL) head(all_URLs)
Download documents based on the research URLs
## For one file: # download_file(all_URLs[1], "data") ## For all files in list: # download_files(all_URLs, "data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.