# download the latest extract of Monaco
download_searchindex(path = tempdir())
# download the latest extract of American Samoa
download_searchindex(path = tempdir(), country = "Samoa")
# download an extract from a month ago
download_searchindex(
path = tempdir(),
country = "Monaco",
date = Sys.time() - 2629800
)
# if possible, download an extract from today
try(download_searchindex(
path = tempdir(),
country = "Monaco",
date = Sys.Date(),
exact = TRUE
))
# get the latest global coverage
# NOTE: the file to be downloaded is several tens of gigabytes of size!
if (FALSE) {
download_searchindex(path = tempdir(), country = "planet")}
Run the code above in your browser using DataLab