actions icon indicating copy to clipboard operation
actions copied to clipboard

rchk example does not install the package

Open MLopez-Ibanez opened this issue 1 year ago • 0 comments

The example provided here: https://github.com/r-lib/actions/blob/v2/run-rchk/README.md does not install the package, thus leading to the error:

Run r-lib/actions/run-rchk@v2
Run bash $GITHUB_ACTION_PATH/run.sh
Cannot find package eaf (/home/docker/R-svn/packages/lib/eaf does not exist).
Error: Process completed with exit code 2.

The following works:

 rchk:
    name: rchk ${{ matrix.config.os }} (${{ matrix.config.r }})
    runs-on: ${{ matrix.config.os }}
    strategy:
      matrix:
        config:
          - {os: ubuntu-latest,   r: 'release'}
    container:
      image: rhub/ubuntu-rchk
      options: --user=root
      
    env:
      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
      
    steps:
      - uses: actions/checkout@v3
      - uses: r-lib/actions/run-rchk@v2
        with:
          setup-only: true

      - uses: r-lib/actions/setup-r@v2
        with:
          use-public-rspm: true
          r-version: ${{ matrix.config.r }}

      - uses: r-lib/actions/setup-r-dependencies@v2
        with:
          extra-packages: any::rcmdcheck, local::.
          needs: check
          
      - uses: r-lib/actions/run-rchk@v2
        with:
          run-only: true

MLopez-Ibanez avatar May 29 '23 18:05 MLopez-Ibanez