diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 6cb8a4d1..4cde8724 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -21,9 +21,9 @@ jobs: config: - {os: macos-latest, r: 'release'} - {os: windows-latest, r: 'release'} - - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - - {os: ubuntu-latest, r: 'release'} - - {os: ubuntu-latest, r: 'oldrel-1'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -40,6 +40,16 @@ jobs: http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true + - name: Configure R-devel repository + if: matrix.config.r == 'devel' + shell: Rscript {0} + run: | + cat( + 'options(repos = c(RUNIVERSE = sprintf("https://cran.r-universe.dev/bin/linux/resolute-x86_64/%s/", getRversion()[, 1:2]), getOption("repos")))\n', + file = "~/.Rprofile", + append = TRUE + ) + - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::rcmdcheck