Learn R Programming

contentid (version 0.0.15)

default_registries: default registries

Description

A helper function to conveniently load the default registries

Usage

default_registries()

Arguments

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

Run this code
# NOT RUN {
## Both defaults
default_registries()

## Only the fist one (local registry)
default_registries()[1]
# }
# NOT RUN {
## Alter the defaults with env var.
Sys.setenv(CONTENTID_REGISTRIES = tempfile())
default_registries()

Sys.unsetenv("CONTENTID_REGISTRIES")
# }

Run the code above in your browser using DataLab