Skip to contents

Download resources from external sources:

  • wid_update_resources: Update all resources.

  • wid_update_world_bank: Country-level data from the World Bank (using the WDI package).

  • wid_update_country_map: GeoJSON map of countries from Natural Earth Vector.

  • wid_update_isic: International Standard Industrial Classification (ISIC) code mappings from the International Labour Organization.

Usage

wid_update_country_map(out_dir = getOption("WID_RESOURCE_DIR"),
  overwrite = FALSE, simplify = FALSE)

wid_update_isic(out_dir = getOption("WID_RESOURCE_DIR"), overwrite = FALSE)

wid_update_resources(out_dir = getOption("WID_RESOURCE_DIR"),
  overwrite = FALSE)

wid_update_world_bank(out_dir = getOption("WID_RESOURCE_DIR"),
  overwrite = FALSE)

Arguments

out_dir

Directory in which to save resources.

overwrite

Logical; if TRUE, will re-download and replace existing resources.

simplify

Logical; if TRUE, will simplify the shapes.

Value

Nothing; writes files to out_dir.

Examples

if (FALSE) { # \dontrun{

  wid_update_resources()
} # }