Skip to content

Commit 9bfb8aa

Browse files
Gemini: More annotations help.
- fix brew untap handling - suppress whitespace compiler warnings - workaround liminal repos' warnings about lacking binary packages etc. This was co-written with Gemini.
1 parent 89e5a58 commit 9bfb8aa

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ jobs:
8080
sudo apt-get update
8181
sudo apt-get install -y libcurl4-openssl-dev libudunits2-dev libgdal-dev libgeos-dev libproj-dev pandoc
8282
83+
- name: Pre-untap untrusted Homebrew taps on macOS
84+
if: matrix.os == 'macOS-latest'
85+
run: brew untap aws/tap 2>/dev/null || true
86+
8387
- name: Install R Package Build Dependencies on MacOS
8488
if: matrix.os == 'macOS-latest'
8589
uses: r-hub/actions/setup-r-sysreqs@v1
@@ -89,7 +93,6 @@ jobs:
8993
- name: Install check dependencies (macOS)
9094
if: matrix.os == 'macOS-latest'
9195
run: |
92-
brew untap aws/tap 2>/dev/null || true # silence some 'brew' Annotations
9396
brew install gdal proj gettext
9497
brew link --overwrite --force gettext 2>/dev/null || true
9598
@@ -100,7 +103,14 @@ jobs:
100103
_R_CHECK_CRAN_INCOMING_REMOTE_: false
101104
_R_CHECK_TESTS_NLINES_: 0
102105
run: |
103-
options(crayon.enabled = TRUE)
106+
options(crayon.enabled=TRUE)
107+
dir.create("~/.R", showWarnings=FALSE)
108+
# suppress noisy Annotation for e.g. {hexbin} about tabs v. spaces
109+
cat("FCFLAGS += -Wno-tabs\nFFLAGS += -Wno-tabs\n", file="~/.R/Makevars", append=TRUE)
110+
# e.g. Annotation about lacking macosx binaries: bin/macosx/sonoma-arm64/contrib/4.7
111+
if (grepl("Under development", R.version$status)) options(pkgType="source")
112+
# to avoid Annotation about certain packages being unavailable, use this old snapshot repo
113+
if (getRversion() < "3.6") options(repos=c(CRAN="https://packagemanager.posit.co/cran/2020-04-24"))
104114
message("*** Using the following repos for installation ***")
105115
print(getOption("repos"))
106116
message("*** Installing Suggested packages ***")

0 commit comments

Comments
 (0)