Skip to content
Back to skills

Bookdown

ASecurity

R bookdown package for books and long documents. Use for multi-chapter documents with cross-references.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added June 5, 2026
datagit

Security analysis

A100/100

Scanned June 5, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Bookdown?

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

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

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: bookdown
description: R bookdown package for books and long documents. Use for multi-chapter documents with cross-references.
---

# bookdown Package

Authoring books and technical documents.

## Project Structure

```
mybook/
├── index.Rmd        # First chapter (with YAML)
├── 01-intro.Rmd
├── 02-methods.Rmd
├── 03-results.Rmd
├── _bookdown.yml    # Book configuration
├── _output.yml      # Output configuration
└── references.bib
```

## index.Rmd

```yaml
---
title: "My Book"
author: "Author Name"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: references.bib
link-citations: yes
---
```

## _bookdown.yml

```yaml
book_filename: "mybook"
delete_merged_file: true
language:
  ui:
    chapter_name: "Chapter "
rmd_files:
  - index.Rmd
  - 01-intro.Rmd
  - 02-methods.Rmd
```

## _output.yml

```yaml
bookdown::gitbook:
  css: style.css
  config:
    toc:
      before: |
        <li><a href="./">My Book</a></li>
bookdown::pdf_book:
  includes:
    in_header: preamble.tex
bookdown::epub_book: default
```

## Cross-References

```markdown
# Introduction {#intro}

See Chapter \@ref(methods) for details.
See Figure \@ref(fig:myplot).
See Table \@ref(tab:mytable).
See Equation \@ref(eq:myeq).

```{r myplot, fig.cap="My caption"}
plot(1:10)
```
```

## Build

```r
bookdown::render_book("index.Rmd", "bookdown::gitbook")
bookdown::render_book("index.Rmd", "bookdown::pdf_book")

# Preview
bookdown::serve_book()
```

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.