jonkeane commented on a change in pull request #12745: URL: https://github.com/apache/arrow/pull/12745#discussion_r838878353
########## File path: .github/workflows/r.yml ########## @@ -329,12 +329,37 @@ jobs: if: ${{ matrix.config.rtools == 35 }} shell: Rscript {0} run: install.packages("cpp11", type = "source") + - name: Prune dependencies (on R 3.6) + if: ${{ matrix.config.rtools == 35 }} + shell: Rscript {0} + run: | + # To prevent the build from timing out, let's prune some optional deps (and their possible version requirements) + setwd("r") + # create a backup to use later + file.copy("DESCRIPTION", "DESCRIPTION.bak") + d <- read.dcf("DESCRIPTION") + to_prune <- c("duckdb", "DBI", "dbplyr", "decor", "knitr", "rmarkdown", "pkgload", "reticulate") + pattern <- paste0("\\n?", to_prune, "( \\([^,]*\\))?,?", collapse = "|") + d[,"Suggests"] <- gsub(pattern, "", d[,"Suggests"]) + write.dcf(d, "DESCRIPTION") + - name: Restore R package cache Review comment: ```suggestion - name: R package cache ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org