knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

extractRC

Build Status Travis build status R-CMD-check

The goal of extractRC is to easily extract files from REACH's Resource Centre (RC)

Installation

You can install extractRC from GitHub with:

# install.packages("devtools")
devtools::install_github("ElliottMess/RC_data_extraction")

Example

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")


ElliottMess/RC_data_extraction documentation built on Feb. 12, 2021, 6:57 a.m.