rr_registers: Download all registers from an environment

Description Usage Arguments Value Examples

View source: R/rr_registers.R

Description

Downloads all the registers listed in the register register of an environment ('alpha', 'beta', or 'discovery'), meaning 'ready to use', 'open for feedback', or 'in progress').

Unlike rr_register() this function only downloads register, and does not read them from disk.

Usage

1
2
3
rr_registers(phase = c("beta", "alpha", "discovery"), dir = NULL,
  parse_datetimes = FALSE, write = FALSE, dest_dir = phase,
  quiet = TRUE)

Arguments

phase

Character, one of "beta", "alpha", and "discovery"

dir

Character, optional name of a directory of RSF files of registers. If NULL (default), the registers will be downloaded.

parse_datetimes

Logical, whether to parse ISO8601 strings as datetimes with parsedate::parse_iso_8601(), otherwise leave as a string. Partial datetimes are parsed as the earliest possible datetime, e.g. "2018" becomes "2018-01-01 UTC".

write

Logical, whether to write the RSF file to disk. If TRUE, either name or dest_path must be provided.

dest_dir

Character, name of a directory to save the RSF file of each register to. The file names will be the names of the registers.

quiet

Logical, if TRUE does not print messages to the console.

Value

An S3 object of class register

Examples

1
2
3
path <- fs::path(tempdir(), "beta")
names(rr_registers("beta", write = TRUE, dest_dir = path))
names(rr_registers(dir = path))

nacnudus/registr documentation built on May 5, 2019, 12:31 p.m.