This function adds a new datasource to a YAML configuration file by appending the provided datasource information to the existing datasources.
Examples
config <- tempfile(fileext = ".yml")
file.copy(
from = system.file("config", "_connector.yml", package = "connector"),
to = config
)
#> [1] TRUE
config |>
add_datasource(
name = "new_datasource",
backend = list(type = "connector_fs", path = "new_path")
)