Skip to content

remove old files

remove old files #15

Workflow file for this run

on: [push, pull_request]
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: '3.6'}
- {os: ubuntu-latest, r: 'devel'}
steps:
- uses: actions/checkout@v1
- uses: r-lib/actions/setup-r@master
- uses: r-lib/actions/setup-tinytex@v1
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2)
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"
- name: Install dependencies
run: |
library(remotes)
deps <- readRDS("depends.Rds")
deps[["installed"]] <- vapply(deps[["package"]], remotes:::local_sha, character(1))
update(deps)
remotes::install_cran("rcmdcheck")
remotes::install_cran("sessioninfo")
shell: Rscript {0}
- name: Install tinytex packages
run: |
Rscript \
-e "install.packages('tinytex')" \
-e "tinytex::tlmgr_install('epstopdf-pkg')"
- name: Check
run: Rscript -e "sessioninfo::session_info(); rcmdcheck::rcmdcheck(args = c('--as-cran', '--no-manual'), error_on = 'warning')"