You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by np...@apache.org on 2022/04/21 22:09:29 UTC

[arrow] branch master updated: MINOR: [R][CI] Guard against missing reticulate

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

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


The following commit(s) were added to refs/heads/master by this push:
     new cbf7d76a59 MINOR: [R][CI] Guard against missing reticulate
cbf7d76a59 is described below

commit cbf7d76a5945dc665a3272507893685036a7dcb0
Author: Jacob Wujciak-Jens <ja...@wujciak.de>
AuthorDate: Thu Apr 21 18:09:19 2022 -0400

    MINOR: [R][CI] Guard against missing reticulate
    
    This caused some build failures where reticulate was not available.
    @nealrichardson could you check this out?
    
    Closes #12946 from assignUser/MINOR-guard-flight
    
    Authored-by: Jacob Wujciak-Jens <ja...@wujciak.de>
    Signed-off-by: Neal Richardson <ne...@gmail.com>
---
 ci/scripts/r_test.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ci/scripts/r_test.sh b/ci/scripts/r_test.sh
index aa2f613184..a20c3aa556 100755
--- a/ci/scripts/r_test.sh
+++ b/ci/scripts/r_test.sh
@@ -95,7 +95,7 @@ SCRIPT="as_cran <- !identical(tolower(Sys.getenv('NOT_CRAN')), 'true')
     }
   }
 
-  if (reticulate::py_module_available('pyarrow')) {
+  if (requireNamespace('reticulate', quietly = TRUE) && reticulate::py_module_available('pyarrow')) {
       message('Running flight demo server for tests.')
       pid_flight <- sys::exec_background(
           'python',