Skip to content

R-CMD-check

R-CMD-check #78

Workflow file for this run

on:
push:
pull_request:
schedule:
- cron: "0 0 16 * *"
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- name: Install libgit2-dev
run: sudo apt install -qq libgit2-dev
- name: Install libmpfr-dev for Rmpfr
run: sudo apt install -qq libmpfr-dev
- name: Install libharfbuzz-dev libfribidi-dev
run: sudo apt install -qq libharfbuzz-dev libfribidi-dev
- name: Install libcurl4-openssl-dev
run: sudo apt install -qq libcurl4-openssl-dev
# from https://travis-ci.community/t/cannot-connect-to-java-from-r/9754/8
- name: Fix rJava error
run: sudo $(which R) CMD javareconf
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_github("richelbilderbeek/beautier", ref = "develop")
remotes::install_github("richelbilderbeek/beastier", ref = "develop")
remotes::install_github("richelbilderbeek/mauricer")
remotes::install_github("richelbilderbeek/babette")
remotes::install_github("richelbilderbeek/mcbette")
remotes::install_github("thijsjanzen/nodesub")
remotes::install_github("richelbilderbeek/pirouette", ref = "develop")
remotes::install_cran("nLTT")
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
remotes::install_cran("covr")
remotes::install_cran("lintr")
remotes::install_github("MangoTheCat/goodpractice")
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: Test coverage
run: covr::codecov()
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Lint
run: lintr::expect_lint_free()
shell: Rscript {0}
- name: Good practice
run: goodpractice::gp()
shell: Rscript {0}