スキル一覧に戻る
CodingKaiser

bookdown

by CodingKaiser

list of claude skills for omics and programming

0🍴 1📅 2026年1月19日
GitHubで見るManusで実行

SKILL.md


name: bookdown description: Cross-referencing in R Markdown documents using bookdown. Use when creating Rmd files that need references to figures, tables, equations, or sections. Triggers on requests for academic reports, technical documents, or any R Markdown with numbered cross-references.

Bookdown Cross-Referencing

Output Formats

Use bookdown:: output formats for cross-referencing support:

output:
  bookdown::html_document2:
    toc: true
  bookdown::pdf_document2:
    toc: true

Other formats: gitbook, word_document2, epub_book.

Figures

Chunk name becomes the reference ID. Requires fig.cap:

```{r myplot, fig.cap="Distribution of values."}
plot(x)

Reference: `Figure \@ref(fig:myplot)` → "Figure 1"

### Long Captions (Text Reference)

Define caption outside chunk, reference inside:

```markdown
(ref:myplot) This is a very long caption with **markdown** and citations [@smith2020].

```{r myplot, fig.cap="(ref:myplot)"}
plot(x)

## Tables

Use `knitr::kable()` with `caption`:

```r
```{r mytable}
knitr::kable(df, caption = "Summary statistics.")

Reference: `Table \@ref(tab:mytable)` → "Table 1"

## Sections

Headers auto-generate IDs from text (lowercase, hyphens):

```markdown
# My Analysis Section
See Section \@ref(my-analysis-section).

Custom ID: # My Section {#custom-id}

Equations

\begin{equation}
y = mx + b
(\#eq:linear)
\end{equation}

See Equation \@ref(eq:linear).

Quick Reference

ElementChunk/LabelReference Syntax
Figuremyplot\@ref(fig:myplot)
Tablemytable\@ref(tab:mytable)
Sectionmy-section\@ref(my-section)
Equationeq:model\@ref(eq:model)

Common Issues

  • References show as ??: Missing fig.cap or wrong output format
  • Duplicate labels: Each chunk name must be unique
  • Backslash required: Use \@ref() not @ref()

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です