find_files: List all files with a certain extension from a URL

Description Usage Arguments Value Examples

View source: R/core_functions.R

Description

List all files with a certain extension from a URL

Usage

1
find_files(url, extension, absolute = TRUE)

Arguments

url

string of URL

extension

string of file extension required (without the dot)

absolute

logical should relative URLs be converted to absolute URLs?

Value

Character vector of URLs

Examples

1
2
3
4
5
6
aec_website <- "http://www.aec.gov.au/Electorates/gis/gis_datadownload.htm"
find_files(aec_website, "zip")
## Not run: 
find_files(aec_website, "zip")[c(1,2)] %>% download.files()

## End(Not run)

AnthonyEbert/sawfish documentation built on Feb. 1, 2020, 12:52 a.m.