Skip to content

Commit

Permalink
config file can be modified in get_golem_config
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinFay committed Dec 24, 2021
1 parent 89daf52 commit 61b9063
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions inst/shinyexample/R/app_config.R
Expand Up @@ -19,6 +19,7 @@ app_sys <- function(...){
#' @param config GOLEM_CONFIG_ACTIVE value. If unset, R_CONFIG_ACTIVE.
#' If unset, "default".
#' @param use_parent Logical, scan the parent directory for config file.
#' @param file Location of the config file
#'
#' @noRd
get_golem_config <- function(
Expand All @@ -30,13 +31,14 @@ get_golem_config <- function(
"default"
)
),
use_parent = TRUE
use_parent = TRUE,
# Modify this if your config file is somewhere else
file = app_sys("golem-config.yml")
){
config::get(
value = value,
config = config,
# Modify this if your config file is somewhere else:
file = app_sys("golem-config.yml"),
file = file,
use_parent = use_parent
)
}
Expand Down

0 comments on commit 61b9063

Please sign in to comment.