download_file: Download file from REACH Resource Centre (RC)

Description Usage Arguments Value Examples

View source: R/data_extraction.R

Description

Download file from REACH Resource Centre (RC)

Usage

1
download_file(file_url, destination_folder)

Arguments

file_url

string URL to file

destination_folder

string folder path to the destination folder where the data will be downloaded. If the folder does not exist, it will be created

Value

the file from the file_url

Examples

1
2
3
4
5
## Not run: 
file_url <- RC_extract_onePage("https://www.reachresourcecentre.info/search/?search=1&initiative%5B%5D=reach&ptheme%5B%5D=cash&dates=&keywords=JMMI")[1]
download_file(file_url, "data")

## End(Not run)

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