Skip to content

updated readme for tutorial #19

updated readme for tutorial

updated readme for tutorial #19

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
release:
types: [published]
workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-22.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
- name: Deploy package
run: |
git config --local user.name "GitHub Actions"
git config --local user.email "[email protected]"
Rscript - << EOF
ns <- loadNamespace('pkgdown')
name <- 'cran_link'
patched <- function(pkg){ NULL }
unlockBinding(name, as.environment(ns))
assign(name, patched, ns)
lockBinding(name, as.environment(ns))
pkgdown::deploy_to_branch(new_process = FALSE)
EOF