Skip to content

Cannot update value to correspond config for nested structure #47

@psychelzh

Description

@psychelzh

See the following example:

withr::with_dir(
  tempdir(),
  {
    file <- "test.yaml"
    writeLines(
      "
default:
  test:
  - a: 1
    b: 2
  - a: 1
    b: 2

dev:
  test:
  - a: 1
    b: 3
  - a: 2
    b: 3
      ",
      file
    )
    config::get("test", file = file, config = "dev")
  }
)
#> [[1]]
#> [[1]]$a
#> [1] 1
#> 
#> [[1]]$b
#> [1] 2
#> 
#> 
#> [[2]]
#> [[2]]$a
#> [1] 1
#> 
#> [[2]]$b
#> [1] 2

Created on 2023-04-26 with reprex v2.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions