-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
57 lines (39 loc) · 1.48 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# extractRC
<!-- badges: start -->
[](https://travis-ci.com/ElliottMess/RC_data_extraction)
[](https://travis-ci.com/ElliottMess/RC_data_extraction)
[](https://github.com/ElliottMess/RC_data_extraction/actions)
<!-- badges: end -->
The goal of extractRC is to easily extract files from [REACH's Resource Centre (RC)](https://www.reachresourcecentre.info/)
## Installation
You can install extractRC from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("ElliottMess/RC_data_extraction")
```
## Example
**Extract all URLs to files associated with a research**
```{r example_links}
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**
```{r example_download}
## For one file:
# download_file(all_URLs[1], "data")
## For all files in list:
# download_files(all_URLs, "data")
```