Skip to content

Commit

Permalink
GH-36750: [R] Fix test-r-devdocs on MacOS (#36751)
Browse files Browse the repository at this point in the history
### Rationale for this change

The test-r-devdocs job is failing. It is failing because we are pinning a version of R that is so old that CRAN no longer serves binaries (#31757), so some of the package builds are failing.

### What changes are included in this PR?

Use the `setup-r-dependencies` action which either installs the correct build dependencies or uses older binary versions to avoid building from source (or both).

### Are these changes tested?

Yes, as part of the test-r-devdocs job.

### Are there any user-facing changes?

No.
* Closes: #36750

Authored-by: Dewey Dunnington <dewey@voltrondata.com>
Signed-off-by: Sutou Kouhei <kou@clear-code.com>
  • Loading branch information
paleolimbot authored Jul 20, 2023
1 parent 15ee521 commit d98b3a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dev/tasks/r/github.devdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ jobs:
# remove after https://issues.apache.org/jira/browse/ARROW-16376
r-version: '4.1'
- uses: r-lib/actions/setup-pandoc@v2
- name: Install knitr, rmarkdown
run: |
install.packages(c("rmarkdown", "knitr", "sessioninfo"))
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: "rmarkdown, knitr, sessioninfo"
- name: Session info
run: |
options(width = 100)
Expand Down

0 comments on commit d98b3a1

Please sign in to comment.