get_golem_config: Read App Config

View source: R/app_config.R

get_golem_configR Documentation

Read App Config

Description

Read App Config

Usage

get_golem_config(
  value,
  config = Sys.getenv("GOLEM_CONFIG_ACTIVE", Sys.getenv("R_CONFIG_ACTIVE", "default")),
  use_parent = TRUE,
  file = app_sys("golem-config.yml")
)

Arguments

value

Value to retrieve from the config file.

config

GOLEM_CONFIG_ACTIVE value. If unset, R_CONFIG_ACTIVE. If unset, "default".

use_parent

Logical, scan the parent directory for config file.

file

Location of the config file


ShixiangWang/coco documentation built on July 9, 2022, 4:43 a.m.