Skip to content

Changes in DESCRIPTION, README.Rmd and test-lmerMod.R (new CRAN maint… #137

Changes in DESCRIPTION, README.Rmd and test-lmerMod.R (new CRAN maint…

Changes in DESCRIPTION, README.Rmd and test-lmerMod.R (new CRAN maint… #137

Workflow file for this run

on:
push:
branches: master
name: pkgdown
jobs:
pkgdown:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-tinytex@master
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-pandoc@master
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
- name: Install magick
run: brew install imagemagick
- name: Install texlibs
run: tlmgr install standalone xcolor booktabs multirow amsmath listings setspace caption graphics tools psnfss varwidth colortbl epstopdf-pkg pgf
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_github("r-lib/[email protected]")
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: covrpage
if: github.ref == 'refs/heads/master'
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
Rscript -e 'install.packages("remotes")' \
-e 'remotes::install_deps(dependencies = TRUE)' \
-e 'remotes::install_github("yonicd/covrpage@actions")' \
-e 'covrpage::covrpage_ci()'
git commit tests/README.md -m 'Update tests/README.Rmd' || echo "No changes to commit"
git push https://${{github.actor}}:${{secrets.GH_PAT}}@github.com/${{github.repository}}.git HEAD:${{ github.ref }} || echo "No changes to commit"
- name: Deploy package
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'