Skip to contents

This function downloads a road access raster file from the 'GitHub' repository located at https://github.com/ardata-fr/road-access-raster and saves it to a specified destination file.

Usage

download_road_access_raster(force = FALSE)

Arguments

force

if TRUE, the function will re-download the file even if it already exists in the cache directory.

Value

The path to the downloaded file.

Examples

#> Warning: cannot open file '/home/runner/Documents/skintrodata_dummy_setup.txt': No such file or directory
#> Error in file(con, "w"): cannot open the connection
if (curl::has_internet()) {
  road_access_raster_file <- download_road_access_raster()
}