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

jonkeane 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 d28aea9791 GH-49380: [R] Remove hidden CI test chunks from setup.Rmd 
to fix r-de… (#49381)
d28aea9791 is described below

commit d28aea97914648c3dbd9e62fca1b0a52de6b9da4
Author: Kumar Vanshaj <[email protected]>
AuthorDate: Mon Mar 23 18:55:46 2026 +0530

    GH-49380: [R] Remove hidden CI test chunks from setup.Rmd to fix r-de… 
(#49381)
    
    ### Rationale for this change
    
    The `r-devdocs` crossbow CI job fails during the gap between the C++
    release (published to apt) and the R package release (CRAN). Two hidden
    bash chunks in `setup.Rmd` were silently installing the released
    `libarrow-dev` from apt during CI, overwriting the version built from
    the git checkout. Since the R package (`arrow.so`) was compiled against
    the newer git-built `libarrow`, loading it against the older apt version
    caused an undefined symbol ABI mismatch error.
    
    ### What changes are included in this PR?
    
    Removes the hidden CI test chunks from
    `r/vignettes/developers/setup.Rmd`:
    
    - Removed hidden macOS chunk that ran `brew install apache-arrow`
    - Removed hidden Ubuntu chunk that ran `apt install libarrow-dev` (root
    cause of the ABI mismatch)
    - Converted the `MAKEFLAGS="LDFLAGS="` example from an executable knitr
    chunk to a plain `bash` code block preserves the documentation example
    without executing it in CI
    
    ### Are these changes tested?
    
    No, the fix removes the broken test logic from the vignette. As noted by
    @thisisnic, this type of testing should live in proper CI
    infrastructure, not embedded as hidden code in documentation.
    
    ### Are there any user-facing changes?
    
    No. The rendered documentation is unchanged the `MAKEFLAGS="LDFLAGS="`
    example remains visible in the "Multiple versions of libarrow"
    troubleshooting section.
    
    * GitHub Issue: #49380
    
    ---------
    
    Co-authored-by: vanshaj2023 <[email protected]>
    Co-authored-by: Jonathan Keane <[email protected]>
---
 r/vignettes/developers/setup.Rmd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/r/vignettes/developers/setup.Rmd b/r/vignettes/developers/setup.Rmd
index e61436df31..d13fc53db1 100644
--- a/r/vignettes/developers/setup.Rmd
+++ b/r/vignettes/developers/setup.Rmd
@@ -350,7 +350,7 @@ sudo apt update
 sudo apt install -y -V libarrow-dev
 ```
 
-```{bash, save=run & !sys_install & macos}
+```{bash, save=run & !sys_install}
 MAKEFLAGS="LDFLAGS=" R CMD INSTALL .
 ```
 

Reply via email to