S3 function to extend a package reference with new fields

pkg_ref_cache(x, name, ..., .class = as.character(name))

Arguments

x

a package reference object

name

the name of the field that needs to be cached

...

additional arguments used for computing cached values

.class

a class name to use for S3 dispatch, defaulting to the name as a character value

Value

a value to assign to the new field in the package reference object environment

See also