Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-35952: [R] Ensure that schema metadata can actually be set as a na…
…med character vector (#35954) This wasn't necessarily a regression (reprex fails in 12.0.0 as well), although the comments suggest that assigning a named character vector will work when assigning schema metadata and this feature appears to be used by at least one of our dependencies (sfarrow). Given that the sfarrow check passes on 12.0.0, there is possibly also a place in our code that returns a named character vector rather than a list. I've confirmed that this fix solves the reverse dependency failure building the sfarrow example vignette. ``` r library(arrow, warn.conflicts = FALSE) schema <- schema(x = int32()) schema$metadata <- c("name" = "value") schema$metadata #> $name #> [1] "value" ``` <sup>Created on 2023-06-06 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup> * Closes: #35952 Authored-by: Dewey Dunnington <[email protected]> Signed-off-by: Nic Crane <[email protected]>
- Loading branch information