pkgdown

star 5

R pkgdown package for package websites. Use for generating documentation websites from R packages.

LeoLin990405 By LeoLin990405 schedule Updated 1/30/2026

name: pkgdown description: R pkgdown package for package websites. Use for generating documentation websites from R packages.

pkgdown Package

Build package documentation websites.

Quick Start

library(pkgdown)

# Build site
build_site()

# Preview
preview_site()

Configuration (_pkgdown.yml)

url: https://mypackage.github.io/mypackage

template:
  bootstrap: 5
  bootswatch: flatly

navbar:
  structure:
    left: [intro, reference, articles, tutorials, news]
    right: [search, github]

reference:
  - title: Data manipulation
    contents:
      - filter
      - select
      - mutate
  - title: Visualization
    contents:
      - starts_with("plot_")

articles:
  - title: Getting started
    contents:
      - introduction
  - title: Advanced
    contents:
      - advanced-usage

Build Components

# Reference pages
build_reference()

# Articles/vignettes
build_articles()

# News
build_news()

# Home page
build_home()

Reference Organization

reference:
  - title: Main functions
    desc: Core functionality
    contents:
      - main_function
      - helper_function

  - title: internal
    contents:
      - starts_with("internal_")

Custom Styling

template:
  bootstrap: 5
  bslib:
    primary: "#0d6efd"
    border-radius: 0.5rem
    btn-border-radius: 0.25rem

Deploy

# GitHub Pages
usethis::use_pkgdown_github_pages()

# Manual deploy
pkgdown::deploy_to_branch()
Install via CLI
npx skills add https://github.com/LeoLin990405/r-analytics-skill --skill pkgdown
Repository Details
star Stars 5
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator
LeoLin990405
LeoLin990405 Explore all skills →