config
config copied to clipboard
No overwrite for object list
Just trying to understand what I'm doing wrong with this config file
default:
val: 1
tag_set_map:
- stap_id: [3, -1]
22NO:
val: 2
tag_set_map:
- stap_id: 3
This makes sense to me:
config::get(config = "22NO")$val
#> 2
But not this:
config::get(config = "22NO")$tag_set_map
#> [[1]]
#> [[1]]$stap_id
#> [1] 3 -1
How come 22NO is not overwriting the default for object list items? Or did I do something wrong? Thanks,
Looks the same as https://github.com/rstudio/config/issues/42, so no solution than naming the list right?
Yes. Lists will get merged recursively, so naming your list seems like a good workaround.