rr_rsf: Download a register RSF file

Description Usage Arguments Examples

View source: R/rr_rsf.R

Description

Either downloads the Register Serialisation Format (RSF) file of a register, constructing the URL from the name of the register and the given phase, or reads it from disk. Optionally saves it to disk.

Usage

1
2
rr_rsf(name = NULL, phase = c("beta", "alpha", "discovery"), file = NULL,
  write = FALSE, dest_path = NULL, quiet = FALSE)

Arguments

name

Character, the name of the register.

phase

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

file

Character, file path or URL, passed on to readr::read_lines() if name is not provided.

write

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

dest_path

Character, path and file name to write the RSF to.

quiet

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

Examples

1
rr_rsf("country")

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