Skip to content

docs: Derive README.md from a README.Rmd - #562

Merged
krlmlr merged 5 commits into
claude/readme-goalsfrom
claude/readme-rmd
Nov 29, 2026
Merged

krlmlr merged 5 commits into
claude/readme-goalsfrom
claude/readme-rmd

Conversation

@krlmlr

@krlmlr krlmlr commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

The hand-written README.md kept this package out of the shared rendering pipeline. This PR adds a README.Rmd copied from it verbatim, prefixed with the output: cynkratemplate::readme_document front matter and the canonical generated-file comment, and re-renders with cynkratemplate::render_readme().

Rendering also writes index.md for pkgdown — the README.md without the code-of-conduct footer. Both README.Rmd and index.md are added to .Rbuildignore; R CMD build plus tar tzf confirms the tarball ships only README.md.

The rendered README.md differs from the hand-written one only in pandoc's gfm normalisations:

  • the generated-file comment at the top;
  • the setext RMariaDB heading rewritten as an ATX # RMariaDB;
  • a blank line after <!-- badges: start -->, and doubled blank lines between sections collapsed to one;
  • ```r and ```R written as ``` r;
  • untagged ``` fenced blocks written as four-space indented blocks (this also silences the stray four-backtick fence after the mariadb-devel snippet);
  • __OS X__ written as **OS X**, and a doubled space after a comma collapsed;
  • the bare https://apps.fedoraproject.org/packages/mysql-devel written as an autolink;
  • --- written as a full-width row of hyphens.

I checked this mechanically: the multiset of words in the old and new README.md is identical apart from the added comment and the markup tokens above, and every URL is unchanged. No evaluated chunks were added — this is a faithful derivation, not new content.

Stacking

This derivation logically belongs below the line-break work, but it is stacked on top of claude/readme-goals (#560) to avoid rewriting the branches below it. #560's rewording of the RMySQL lines is merged in and carried into README.Rmd. #561 sits on top. Stack: #560 → #562 → #561.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m

Continued in https://claude.ai/code/session_01Hr1rd43pnoHuAnGBgMih89


Generated by Claude Code


Generated by Claude Code

The hand-written `README.md` keeps the package out of the shared rendering pipeline,
so this adds a `README.Rmd` copied from it verbatim,
prefixed with the `cynkratemplate::readme_document` front matter and the canonical generated-file comment.

Rendering with `cynkratemplate::render_readme()` also writes `index.md` for pkgdown,
which is the `README.md` without the code-of-conduct footer.
Both `README.Rmd` and `index.md` are added to `.Rbuildignore` so neither ships in the tarball.

The rendered `README.md` differs from the hand-written one only in pandoc's gfm normalisations:
the generated-file comment, a setext heading rewritten as ATX, blank lines around `<!-- badges: start -->` and between sections,
` ```r ` and ` ```R ` written as ` ``` r `, untagged fenced blocks written as indented blocks,
`__strong__` written as `**strong**`, a bare URL written as an autolink, and `---` written as a full-width row of hyphens.
No word, URL, or code-block content changes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
The hand-written `README.md` keeps the package out of the shared rendering pipeline,
so this adds a `README.Rmd` copied from it verbatim,
prefixed with the `cynkratemplate::readme_document` front matter and the canonical generated-file comment.

Rendering with `cynkratemplate::render_readme()` also writes `index.md` for pkgdown,
which is the `README.md` without the code-of-conduct footer.
Both `README.Rmd` and `index.md` are added to `.Rbuildignore` so neither ships in the tarball.

The rendered `README.md` differs from the hand-written one only in pandoc's gfm normalisations:
the generated-file comment, a setext heading rewritten as ATX, blank lines around `<!-- badges: start -->` and between sections,
` ```r ` and ` ```R ` written as ` ``` r `, untagged fenced blocks written as indented blocks,
`__strong__` written as `**strong**`, a bare URL written as an autolink, and `---` written as a full-width row of hyphens.
No word, URL, or code-block content changes.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
@krlmlr
krlmlr removed this pull request from stack #564 November 29, 2026 11:08
@krlmlr
krlmlr added this pull request to stack #582 November 29, 2026 11:08
@krlmlr
krlmlr merged commit 8ab4bf0 into main Nov 29, 2026
9 of 14 checks passed
@krlmlr
krlmlr deleted the claude/readme-rmd branch November 29, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants