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

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


The following commit(s) were added to refs/heads/main by this push:
     new 4a6c184  GH-381: [R] Use RETICULATE_PYTHON="managed" in test.R (#386)
4a6c184 is described below

commit 4a6c184f313ba690c19a0f550dd000372c0b283b
Author: Bryce Mecum <[email protected]>
AuthorDate: Mon Aug 4 19:37:03 2025 -0700

    GH-381: [R] Use RETICULATE_PYTHON="managed" in test.R (#386)
    
    I'm somewhat confident this will fix the CI issue on the stable branch
    we're seeing in https://github.com/apache/arrow-cookbook/issues/381.
    
    I did some testing on draft PRs.
---
 r/scripts/test.R | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/r/scripts/test.R b/r/scripts/test.R
index a0f4725..e6e0ddf 100644
--- a/r/scripts/test.R
+++ b/r/scripts/test.R
@@ -55,5 +55,9 @@ dir.create(td)
 # Extract R code from files
 purrr::walk(files, extract_r_code, dir = td)
 
+# Fixes CI for newer reticulate by forcing reticulate to manage itself even if
+# it finds other Python installations on the host
+Sys.setenv(RETICULATE_PYTHON="managed")
+
 # Run tests
 testthat::test_dir(path = td)

Reply via email to