Download and import a data set from a URL. This function assumes that the URL points to a zip archive.

get_dataset_from_url(x, force = FALSE)

Arguments

x

character URL containing data to download and import.

force

logical If the argument to x contains a data set that is greater than 100 Mb in size, should the data set still be downloaded?.

Value

tibble or sfc object.

Examples

url <- paste0("https://datagovau.s3.amazonaws.com/bioregionalassessm", "ents/LEB/PED/DATA/Resources/Other/110_Context_statement", "NTGAB_Selected_Wetlands/062801f2-dcf9-4a2d-b65b-52f20d4", "da721.zip") dataset <- get_dataset_from_url(url)