Safely extracts a parameter from configuration with default fallback.
Examples
# Simple nested parameter extraction
config <- list(model = list(params = list(lr = 0.01)))
lr <- get_config_param(config, "model", "params", "lr", .default = 0.001)
print(lr) # 0.01
#> [1] 0.01
# With default fallback
missing <- get_config_param(config, "model", "missing", .default = "default")
print(missing) # "default"
#> [1] "default"