Debugging rfast install #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: document | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: write | |
| jobs: | |
| document: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: any::roxygen2 | |
| needs: pr-document | |
| - name: Specific Rfast dependency | |
| run: | | |
| install.packages("remotes") | |
| remotes::install_version("Rfast", version = "2.0.8") | |
| print(.libPaths()) # Debugging | |
| installed_pkgs <- installed.packages()[, "Package"] | |
| print(installed_pkgs) # Debugging | |
| shell: Rscript {0} | |
| - name: Document | |
| run: | | |
| library(Rfast) # Ensure it loads | |
| roxygen2::roxygenise() | |
| shell: Rscript {0} | |
| - name: commit | |
| run: | | |
| git config --local user.name "$GITHUB_ACTOR" | |
| git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| git add man/\* NAMESPACE | |
| git diff --staged --quiet || git commit -m 'Automatic documentation' | |
| git pull --ff-only | |
| git push origin |