Skip to content
Prev 7977 / 12125 Next

[R-pkg-devel] Github action setup for R 4.2.0 on Windows?

On 23/04/2022 9:42 a.m., Hiroaki Yutani wrote:
Thanks, that fixes it.  To be explicit, these are the changes to the 
workflow:

    strategy:
       fail-fast: false
       matrix:
         config:

               # New option on the next line:

           - {os: windows-latest, r: 'release', rtools-version: '42'}
           - {os: ubuntu-18.04,   r: 'devel', rspm: 
"https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", 
http-user-agent: "R/4.1.0 (ubuntu-18.04) R (4.1.0 x86_64-pc-linux-gnu 
x86_64 linux-gnu) on GitHub Actions" }

     env:
       R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
       _R_CHECK_FORCE_SUGGESTS_: false
       # _R_CHECK_RD_XREFS_: false
       # _R_CHECK_CRAN_INCOMING_: false
       # _R_CHECK_AUTOCONF_: false
       RSPM: ${{ matrix.config.rspm }}
       GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
       RGL_USE_NULL: true

     steps:
       - uses: actions/checkout at v2

          # Change to @v2 on the next line:

       - uses: r-lib/actions/setup-r at v2
         with:
           r-version: ${{ matrix.config.r }}
           http-user-agent: ${{ matrix.config.http-user-agent }}

              # Add this line to make use of the option

           rtools-version: ${{ matrix.config.rtools-version }}


I also updated the setup-pandoc action to v2, but that's unrelated.

Duncan Murdoch