Skip to contents

download_damage() downloads official damage functions in the French context. It can deal several repositories and several kind of assets (dwelling, activity, agriculture, public intrastructure, and sewage).

Usage

download_damage(
  asset = c("dwelling", "logement", "activity", "entreprise", "agriculture",
    "infrastructure", "public", "sewage"),
  repository = c("official", "inrae"),
  destination = tempdir(),
  verbose = TRUE
)

Arguments

asset

character, type of assets for which damage function will be downloaded. May be set in English or in French.

repository

character, reposistory where to find damage functions. May be either "official" or "inrae". c("agriculture", "logements").

destination

character, destination directory for the downloaded file. Default to tempdir()

verbose

boolean, should the function give some sumup informations. Default to TRUE

Value

character indicating where each each assets has been downloaded.

Examples


if (FALSE) { # \dontrun{
download_damage()
download_damage(asset = "agriculture")
} # }