old_config <- auto_config_set(auto_config(bg = "black", fg = "white"))
# Resolving auto values in local theme objects
theme <- thematic_theme()
theme[c("bg", "fg")]
theme <- auto_resolve_theme(theme)
theme[c("bg", "fg")]
# By default, auto values are resolved when accessing
# global theme options
thematic_on()
thematic_get_option("bg", resolve = FALSE)
thematic_get_option("bg")
thematic_off()
auto_config_set(old_config)
Run the code above in your browser using DataLab