From d8ee938f0f8c43a084808f8479d30f5c09aa4f15 Mon Sep 17 00:00:00 2001 From: Martin Westgate Date: Wed, 17 May 2023 15:58:54 +1000 Subject: [PATCH] fix bug in `galah_config` where `atlas` couldn't be updated (#193) --- R/galah_config.R | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/R/galah_config.R b/R/galah_config.R index 828a0e3b..82ed8fe8 100644 --- a/R/galah_config.R +++ b/R/galah_config.R @@ -92,9 +92,17 @@ galah_config <- function(...) { # check all values in dots to ensure they are valid result <- restructure_config(dots) - + # add to `potions` object - brew(result, method = "leaves") + if(any(names(result) == "atlas")){ + brew(atlas = list(atlas = result$atlas)) + result <- result[names(result) != "atlas"] + } + + if(length(result) > 0){ + brew(result, method = "leaves") + } + }else{ x <- pour() class(x) <- c("galah_config", "list")