default_registries: default registries

View source: R/default_registries.R

default_registriesR 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")


cboettig/contentid documentation built on Oct. 24, 2023, 1:03 p.m.