Download Data from Google Drive

drive_file_by_id(
  id = character(),
  dir = here::here("data-raw", "temp"),
  vsizip = F
)

Arguments

id

The character ID from a Google Drive file. Found in the middle of the share link: https://drive.google.com/file/d/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/view

dir

Path to the local directory in which to download the file

vsizip

Whether to append the "vsizip" parameter which allows GEOS access within ZIPs without extracting first

Value

The path to the downloaded file