Skip to content

Commit

Permalink
apacheGH-44018: [R] Treat builds on R-universe as like NOT_CRAN=true (
Browse files Browse the repository at this point in the history
apache#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: apache#44018

Authored-by: SHIMA Tatsuya <[email protected]>
Signed-off-by: Jacob Wujciak-Jens <[email protected]>
  • Loading branch information
eitsupi authored Oct 24, 2024
1 parent 7d5a818 commit 9287bd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9287bd7

Please sign in to comment.