Actually update the renv #136
Workflow file for this run
This file contains 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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | |
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | |
on: | |
pull_request: | |
branches: | |
- main | |
- master | |
name: R-CMD-check-renv | |
jobs: | |
R-CMD-check-renv: | |
runs-on: ubuntu-22.04 | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "renv" | |
use-public-rspm: true | |
- name: Set up Pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install additional system dependencies | |
run: | | |
sudo apt-get install -y libcurl4-openssl-dev libglpk40 | |
# remove requirements file to prevent renv from worrying about python | |
- name: Remove requirements.txt file | |
run: | | |
rm -f requirements.txt | |
- name: Set up Renv & install packages | |
uses: r-lib/actions/setup-renv@v2 | |
- name: Clean up temp files | |
run: | | |
rm -rf /tmp/downloaded_packages | |
rm -rf /tmp/Rtmp* | |
- name: Remove unneeded system files | |
run: | | |
sudo rm -rf /opt/hostedtoolcache/CodeQL | |
sudo rm -rf /opt/hostedtoolcache/PyPy | |
sudo rm -rf /opt/hostedtoolcache/Ruby | |
- name: Install additional dependencies for testing | |
run: | | |
install.packages(c("remotes", "rcmdcheck")) | |
remotes::install_github("AlexsLemonade/scpcaData") | |
shell: Rscript {0} | |
- name: Check package | |
uses: r-lib/actions/check-r-package@v2 | |
with: | |
args: 'c("--no-manual")' |