Skip to content

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

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

krlmlr merged 10 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 a comment that names README.Rmd as the file to edit, and renders README.md and index.md from it with the ordinary rmarkdown::render("README.Rmd") (or devtools::build_readme(), or the Knit button).

Stacked on #607, which adds the "Goals and non-goals" section; this PR's README.Rmd carries that section, including #607's latest wording, so the rendered README.md equals #607's README.md plus the changes listed below.

What rendering changes

index.md is the pkgdown front page: the same text without the part from the horizontal rule on (the code-of-conduct footer), which pkgdown shows in its sidebar instead. Both README.Rmd and index.md are in .Rbuildignore; R CMD build plus tar tzf confirms the tarball ships README.md and neither of the other two.

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

No evaluated chunks were added, so rendering needs no database server. Rendered with the current cynkratemplate (0.0.2.9041), a fresh render is byte-identical to the committed README.md and index.md, so the "Re-render the README" step of R-CMD-check on main has nothing to commit back.

Checks

On this stacked branch only format-suggest runs; the full checks run once the PR targets main. Locally: pkgdown::check_pkgdown() reports no problems. A local pkgdown::build_home() could not run, because the session's network does not reach the CDN pkgdown fetches its assets from.

Stacking

This derivation logically belongs below the line-break work, but it is stacked on top of claude/readme-goals to avoid rewriting and force-pushing every branch in the open chain across four repositories.

Clean review done, nothing above Low: Accepted limitations.

Sessions: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m (original author), https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc (merged main and #607, ported #607's revised goals section into README.Rmd, re-rendered and re-checked).


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, `*` bullets written as `-`, ` ```R ` written as ` ``` r `,
blank lines inserted around headings and `<!-- badges: start -->`, trailing whitespace stripped,
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, `*` bullets written as `-`, ` ```R ` written as ` ``` r `,
blank lines inserted around headings and `<!-- badges: start -->`, trailing whitespace stripped,
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 format from cynkratemplate#135 now links inline code in prose to its reference page,
and this branch was rendered before that landed,
so the committed README.md no longer matched a fresh render.
With the README rendered in CI by default, the first run would have committed the links itself;
this commits exactly what that run produces, so the pull request stays a faithful render.

Only README.md changes: the links are added to prose and nothing else moves.
index.md is untouched, because pkgdown links the front page itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WWhverMTZZKgEpUuTK117m
Carries the two README.md wording edits from #607 into README.Rmd
and re-renders README.md and index.md from it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc
Carries the revised "Goals and non-goals" section from #607 into README.Rmd
and re-renders README.md and index.md from it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Hr1rd6e5NcxC9GSrNJDokc

krlmlr commented Nov 29, 2026

Copy link
Copy Markdown
Member Author

Accepted limitations

These remain after the clean review (one round, nothing above Low).

  • .github/workflows/R-CMD-check.yaml#L276-L279: with README.Rmd present, CI's "Re-render the README" step (cynkratemplate render-readme@main) re-renders and commits back, so a later hand edit to README.md is silently overwritten; the generated-file comment at the top of README.md and index.md is the only guard. Relevance: low. Confidence: high.
  • Same step: CI renders with cynkratemplate@main, local renders with the installed version (0.0.2.9041 here, byte-identical output today); a future difference between them could produce churn commits. Relevance: low. Confidence: medium.
  • README.md: the new autolink for bit64::integer64 points to bit64.r-lib.org (the URL in bit64's DESCRIPTION); it could not be opened from the review environment. Relevance: low. Confidence: medium.

Generated by Claude Code

@krlmlr
krlmlr merged commit 1ac6f5e into main Nov 29, 2026
9 checks passed
@krlmlr
krlmlr deleted the claude/readme-rmd branch November 29, 2026 19:04
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