From 61b9063f65006bc9b15dd2f1e535466c45d25424 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 7 Dec 2021 10:28:35 +0100 Subject: [PATCH] config file can be modified in get_golem_config --- inst/shinyexample/R/app_config.R | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/inst/shinyexample/R/app_config.R b/inst/shinyexample/R/app_config.R index 14350d5c..01a685a3 100644 --- a/inst/shinyexample/R/app_config.R +++ b/inst/shinyexample/R/app_config.R @@ -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( @@ -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 ) }