% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/update_value_sets.R
\name{update_value_sets}
\alias{update_value_sets}
\title{Update eq5dsuite value sets}
\usage{
update_value_sets(
  versions = c("3L", "5L", "Y3L"),
  ask = TRUE,
  drop = NULL,
  rename = NULL
)
}
\arguments{
\item{versions}{Character vector. Which instruments to check.
Defaults to c("3L", "5L", "Y3L").}

\item{ask}{Logical. Whether to ask for confirmation before
installing, dropping, or renaming. Defaults to TRUE.}

\item{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).}

\item{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).}
}
\value{
Invisibly returns a list with elements
  \code{checked}, \code{new}, \code{installed},
  \code{dropped}, and \code{renamed}.
}
\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.
}
\details{
This function requires an internet connection for checking
and installing new value sets. Drop and rename operations
work offline.
}
\examples{
\dontrun{
# 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)
}
}
