This is an automated email from the ASF dual-hosted git repository.
assignuser 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 9287bd7eca GH-44018: [R] Treat builds on R-universe as like
`NOT_CRAN=true` (#44476)
9287bd7eca is described below
commit 9287bd7eca701b7cd3fd3e3b8bb30d82fcaea396
Author: eitsupi <[email protected]>
AuthorDate: Fri Oct 25 07:56:19 2024 +0900
GH-44018: [R] Treat builds on R-universe as like `NOT_CRAN=true` (#44476)
### Rationale for this change
R-universe mimics CRAN's behavior quite well, but unlike CRAN, it does not
reject external binary downloads.
So allowing automatic download of libarrow binaries on R-universe may
reduce CI run time on R-universe.
### What changes are included in this PR?
Change to attempt to download libarrow binaries on R-universe.
### Are these changes tested?
No.
### Are there any user-facing changes?
No.
* GitHub Issue: #44018
Authored-by: SHIMA Tatsuya <[email protected]>
Signed-off-by: Jacob Wujciak-Jens <[email protected]>
---
r/tools/nixlibs.R | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/r/tools/nixlibs.R b/r/tools/nixlibs.R
index ef6c1700b1..6c68133cd8 100644
--- a/r/tools/nixlibs.R
+++ b/r/tools/nixlibs.R
@@ -926,7 +926,9 @@ options(.arrow.cleanup = character())
on.exit(unlink(getOption(".arrow.cleanup"), recursive = TRUE), add = TRUE)
not_cran <- env_is("NOT_CRAN", "true")
-if (not_cran) {
+on_r_universe <- !env_is("MY_UNIVERSE", "")
+
+if (not_cran || on_r_universe) {
# Set more eager defaults
if (env_is("LIBARROW_BINARY", "")) {
Sys.setenv(LIBARROW_BINARY = "true")