Skip to contents

Clears the loaded YAML config. After calling fr_config_reset(), fr_table() uses built-in defaults (or fr_theme() if set). Call fr_config() again to reload.

Usage

fr_config_reset()

Value

Invisibly NULL.

See also

fr_config() to load, fr_config_get() to inspect.

Examples

# Load a config
default_cfg <- system.file("defaults/_arframe.yml", package = "arframe")
fr_config(default_cfg)
fr_config_get()$page$orientation   # has a value
#> [1] "landscape"

# Reset clears everything
fr_config_reset()

# After reset and re-load, config is back to defaults
fr_config(default_cfg)
fr_config_get()$page$orientation
#> [1] "landscape"
fr_config_reset()                  # clean up