You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2021/08/13 05:52:53 UTC

[arrow-cookbook] branch main updated: Fix C++ version (#36)

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

westonpace 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 02bbd0e  Fix C++ version (#36)
02bbd0e is described below

commit 02bbd0e0d8b09798b6d048b3fb7428c299024834
Author: Nic <th...@gmail.com>
AuthorDate: Fri Aug 13 05:52:47 2021 +0000

    Fix C++ version (#36)
---
 r/scripts/install_dependencies.R | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/r/scripts/install_dependencies.R b/r/scripts/install_dependencies.R
index d8dfb51..502beea 100644
--- a/r/scripts/install_dependencies.R
+++ b/r/scripts/install_dependencies.R
@@ -59,6 +59,11 @@ load_package <- function(pkg) {
 #' @param version_to_install The version to install. Default is latest CRAN version.
 install_arrow_version <- function(version_to_install) {
 
+  # Unset the ARROW_HOME environment variable so we build the correct C++
+  old_home <- Sys.getenv("ARROW_HOME")
+  Sys.setenv("ARROW_HOME" = "")
+  on.exit(Sys.setenv("ARROW_HOME" = old_home))
+  
   # TODO: refactor this to get the latest available version on the nightlies
   # given we set NOT_CRAN = TRUE (#29)
   latest_release <- package_version(available.packages()["arrow", ]["Version"])