Skip to contents

download_damage() downloads official damage functions for agriculture or housing from the French government's website "ecologie.gouv".

Usage

download_damage(
  damage = c("agriculture", "entreprises", "logements", "publics"),
  destination = tempdir(),
  verbose = TRUE
)

Arguments

damage

character, type of damage function to download. Must be either 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

None. The function downloads the specified damage function file to the specified destination.

Examples

if (FALSE) { # \dontrun{
download_damage(damage = "agriculture")
download_damage(damage = c("agriculture", "logements"))
} # }