Skip to contents

Load or Update PIP microdata inventory. Wrapper of function pip_load_inventory and pip_update_inventory

Usage

pip_inventory(
  action = "load",
  country = NULL,
  root_dir = Sys.getenv("PIP_ROOT_DIR"),
  maindir = pip_create_globals(root_dir)$PIP_DATA_DIR,
  force = FALSE,
  inventory_version = NULL
)

Arguments

action

character: Either load or update

country

character: vector with ISO3 country code to update

root_dir

character: root directory of the PIP data

maindir

character: main directory. By default it uses pip_create_globals(root_dir)$PIP_DATA_DIR

force

logical: If TRUE, forced update implemented

inventory_version

date: date of inventory version to load

Value

data.table

Examples

if (FALSE) {
pip_inventory("load")
}