Skip to content

Merge pull request #460 from olivroy/patch-1 #123

Merge pull request #460 from olivroy/patch-1

Merge pull request #460 from olivroy/patch-1 #123

Workflow file for this run

on:
push:
branches:
- main
name: pkgdown
jobs:
pkgdown:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- uses: r-lib/actions/setup-r@master
with:
r-version: 'release'
- 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)
shell: Rscript {0}
- name: Install dependencies
run: |
install.packages("devtools")
install.packages("remotes")
install.packages("pkgdown")
install.packages("vdiffr")
install.packages("textshaping", type = "binary")
remotes::install_github("lorenzwalthert/gitsum")
remotes::install_github("pharmaR/riskmetric")
install.packages("ggthemes")
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Deploy package
run: |
Rscript -e 'rmarkdown::render("README.rmd")'
Rscript -e 'devtools::document()'
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'