This is an automated email from the ASF dual-hosted git repository.

thisisnic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0a6de2d227 GH-50476: [R] empty_named_list() uses deprecated .Names in 
structure()  (#50485)
0a6de2d227 is described below

commit 0a6de2d227e5f3842cddfc74cdc37c4520666fd9
Author: Nic Crane <[email protected]>
AuthorDate: Mon Jul 13 19:38:12 2026 +0100

    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 <[email protected]>
    Signed-off-by: Nic Crane <[email protected]>
---
 r/R/util.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/r/R/util.R b/r/R/util.R
index cc16bb7ccf..dc48c5fb8f 100644
--- a/r/R/util.R
+++ b/r/R/util.R
@@ -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",

Reply via email to