Skip to content
Back to skills

Pkgdown

ASecurity

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

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 4, 2026
datagitdocumentation

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill pkgdown --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pkgdown?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pkgdown
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-pkgdown/badge)](https://www.skillsdirectory.com/skills/leolin990405-pkgdown)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

```r
library(pkgdown)

# Build site
build_site()

# Preview
preview_site()
```

## Configuration (_pkgdown.yml)

```yaml
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

```r
# Reference pages
build_reference()

# Articles/vignettes
build_articles()

# News
build_news()

# Home page
build_home()
```

## Reference Organization

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

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

## Custom Styling

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

## Deploy

```r
# GitHub Pages
usethis::use_pkgdown_github_pages()

# Manual deploy
pkgdown::deploy_to_branch()
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.