Skip to contents

helper func to update 1 metadata attribute (e.g. "ejam_package_version") in all pkg datasets updates EJAM/data/*.rda (BUT NOT ARROW & NOT TXT FILES)

Usage

metadata_update_attr(
  x = pkg_data("EJAM")$Item,
  attr_name = "ejam_package_version",
  newvalue = desc::desc_get("Version"),
  exclude_atomic_vectors = TRUE
)

Arguments

x

vector of 1+ quoted names of data object(s), like "testpoints_10"

attr_name

e.g. "ejam_package_version"

newvalue

the new value of that attribute

exclude_atomic_vectors

if TRUE, avoids updating attributes on atomic vectors like names_e, since it is distracting when printing them to console

See also