GH-50476: [R] empty_named_list() uses deprecated .Names in structure() (#50485)

### Rationale for this change

Update .Names to names as CRAN check fails

### What changes are included in this PR?

Update .Names to names as CRAN check fails

### Are these changes tested?

CI

### Are there any user-facing changes?

No
* GitHub Issue: #50476

Authored-by: Nic Crane <thisisnic@gmail.com>
Signed-off-by: Nic Crane <thisisnic@gmail.com>
This commit is contained in:
Nic Crane committed 2026-08-22 10:20:50 +01:00
1 parent c2cc538eb9
commit dee97d5260
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ is_list_of <- function(object, class) {
is.list(object) && all(map_lgl(object, ~ inherits(., class)))
}
empty_named_list <- function() structure(list(), .Names = character(0))
empty_named_list <- function() structure(list(), names = character(0))
r_symbolic_constants <- c(
"pi",