Skip to content

Commit

Permalink
R >= 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 24, 2024
1 parent 562e276 commit 17df062
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/custom/before-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,11 @@ name: 'Custom steps to run before R packages are installed'
runs:
using: "composite"
steps:
- name: Define R CMD check error condition
# Rscript not available on Mac
if: runner.os != 'macOS'
run: |
if (getRversion() < "4.0") {
message("Setting RCMDCHECK_ERROR_ON")
cat('RCMDCHECK_ERROR_ON="warning"\n', file = Sys.getenv("GITHUB_ENV"), append = TRUE)
}
shell: Rscript {0}

- name: Define _R_CHECK_PKG_SIZES_THRESHOLD_
run: |
echo '_R_CHECK_PKG_SIZES_THRESHOLD_=10' | tee -a $GITHUB_ENV
shell: bash

- name: Define _R_CHECK_FORCE_SUGGESTS_
# Rscript not available on Mac
if: runner.os != 'macOS'
run: |
if (getRversion() < "4.0") {
message("Setting _R_CHECK_FORCE_SUGGESTS_")
cat('_R_CHECK_FORCE_SUGGESTS_=false\n', file = Sys.getenv("GITHUB_ENV"), append = TRUE)
}
shell: Rscript {0}

- name: Define DM_TEST_SRC
run: |
echo "DM_TEST_SRC=${{ matrix.config.test-src }}" | tee -a $GITHUB_ENV
Expand Down

0 comments on commit 17df062

Please sign in to comment.