default_registries {contentid} | R Documentation |
default registries
Description
A helper function to conveniently load the default registries
Usage
default_registries()
Details
This function is primarily useful to restrict the
scope of sources or register to, e.g. either just the
remote registry or just the local registry. Note that a user
can alter the registry on the fly by passing local paths and/or the
URL (https://hash-archive.org
) directly.
Examples
## Both defaults
default_registries()
## Only the fist one (local registry)
default_registries()[1]
## Alter the defaults with env var.
Sys.setenv(CONTENTID_REGISTRIES = tempfile())
default_registries()
Sys.unsetenv("CONTENTID_REGISTRIES")
[Package contentid version 0.0.18 Index]