update_value_sets: Update eq5dsuite value sets

View source: R/update_value_sets.R

update_value_setsR Documentation

Update eq5dsuite value sets

Description

Connects to the eq5dsuite value sets repository and checks whether new value sets are available for any of the three EQ-5D instruments. Optionally drop or rename existing value sets before checking for updates.

Usage

update_value_sets(
  versions = c("3L", "5L", "Y3L"),
  ask = TRUE,
  drop = NULL,
  rename = NULL
)

Arguments

versions

Character vector. Which instruments to check. Defaults to c("3L", "5L", "Y3L").

ask

Logical. Whether to ask for confirmation before installing, dropping, or renaming. Defaults to TRUE.

drop

Character vector of VS_codes to remove, in the format "VS_code:version" e.g. c("NL:3L", "US:5L"). Defaults to NULL (no removals).

rename

Named character vector of renames in the format c("old_VS_code:version" = "new_VS_code") e.g. c("NL:3L" = "NL_2006"). Defaults to NULL (no renames).

Details

This function requires an internet connection for checking and installing new value sets. Drop and rename operations work offline.

Value

Invisibly returns a list with elements checked, new, installed, dropped, and renamed.

Examples

## Not run: 
# Check for new value sets interactively
update_value_sets()

# Check specific instrument only
update_value_sets(versions = "5L")

# Drop a value set
update_value_sets(drop = "NL:3L")

# Rename a value set
update_value_sets(rename = c("NL:3L" = "NL_2006"))

# Drop and rename in one call
update_value_sets(
  drop   = "DE:3L",
  rename = c("NL:3L" = "NL_2006", "SI:3L" = "SI_TTO")
)

# Non-interactive update
update_value_sets(ask = FALSE)

## End(Not run)

eq5dsuite documentation built on May 14, 2026, 5:07 p.m.