tests/testthat/setup-all.R

# sets the default application directory given by content_dir() to tempdir()
Sys.setenv("CONTENTID_HOME" = tempdir())

## Default registries when unset are given by default_registeries(),
## and loads both a local registry at content_dir(), and a remote registry
## at hash-archive.org. Here, we omit any remote registry by default,
## and set the local registry to the tempdir() location.
Sys.setenv("CONTENTID_REGISTRIES" = paste(tempdir(), default_tsv(), sep=", "))

## Make sure we do not have alternate algos set
Sys.unsetenv("CONTENTID_ALGOS")
cboettig/contentid documentation built on Oct. 24, 2023, 1:03 p.m.