Skip to content

Commit 0a6de2d

Browse files
authored
apacheGH-50476: [R] empty_named_list() uses deprecated .Names in structure() (apache#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: apache#50476 Authored-by: Nic Crane <thisisnic@gmail.com> Signed-off-by: Nic Crane <thisisnic@gmail.com>
1 parent b03b4c5 commit 0a6de2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

r/R/util.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ is_list_of <- function(object, class) {
4444
is.list(object) && all(map_lgl(object, ~ inherits(., class)))
4545
}
4646

47-
empty_named_list <- function() structure(list(), .Names = character(0))
47+
empty_named_list <- function() structure(list(), names = character(0))
4848

4949
r_symbolic_constants <- c(
5050
"pi",

0 commit comments

Comments
 (0)