Skip to contents

globalvuln_data() makes data freshness explicit. Package data are the immutable snapshot installed with globalvuln; latest data are read from the approved, versioned static board published with the package website.

Usage

globalvuln_data(
  source = c("latest", "package"),
  version = NULL,
  indices = NULL,
  format = c("long", "wide")
)

Arguments

source

Data source. "latest" reads the approved online board and "package" reads the installed package snapshot offline.

version

Optional version of the humanitarian_indices pin. Versions are only supported for source = "latest".

indices

Optional character vector of index identifiers. The default selects all supported indices.

format

Output layout: "long" (the default) or "wide".

Value

A data frame with provenance in the globalvuln_source, globalvuln_version, and globalvuln_manifest attributes.

Examples

package_data <- globalvuln_data(
  source = "package",
  indices = c("inform_risk", "hdi")
)