Skip to contents

Checks for updated versions of on-demand dictionaries and downloads any that have newer versions available on the remote repository.

Usage

update_dictionaries(
  names = NULL,
  format = c("qs2", "rda"),
  path = NULL,
  quiet = FALSE
)

Arguments

names

Character vector of dictionary names to update. If NULL (the default), all dictionaries with available updates are updated.

format

File format to download: "qs2" (default) or "rda".

path

Character. Custom save location for downloaded dictionaries. If NULL (the default), saves to the package's ondemand folder or user cache.

quiet

Logical. Suppress messages? Default FALSE.

Value

A data frame with columns:

  • name: Dictionary name

  • old_version: Version before update (NA if not previously installed)

  • new_version: Version after update (NA if download failed)

  • updated: TRUE if the dictionary was successfully updated

See also

check_updates to check for available updates, download_dictionary to download individual dictionaries.

Examples

if (FALSE) { # \dontrun{
# Update all dictionaries that have new versions
update_dictionaries()

# Update specific dictionaries
update_dictionaries(c("nrc_vad", "humor_norms"))

# Update to a custom location
update_dictionaries(path = "/my/data")
} # }