Skip to content

roam(): preview a book's index.Rmd alone or as the whole book - #205

Merged
yihui merged 4 commits into
mainfrom
book-index-preview
Nov 20, 2026
Merged

yihui merged 4 commits into
mainfrom
book-index-preview

Conversation

@yihui

@yihui yihui commented Nov 19, 2026

Copy link
Copy Markdown
Owner

?preview=2 now always renders a single file; the new ?preview=3 renders the whole book for the book index (same as 2 for other files). In the file listing, the Run button of a book's index.Rmd runs it alone, and a new "run to end" button runs the whole book. The toolbar Run button of the index runs the whole book, and the index chapter in a whole-book page gets its own Run button.

`?preview=2` now always renders a single file; the new `?preview=3` renders the
whole book for the book index (same as 2 for other files). In the file listing,
the Run button of a book's index.Rmd runs it alone, and a new "run to end"
button runs the whole book. The toolbar Run button of the index runs the whole
book, and the index chapter in a whole-book page gets its own Run button.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Site preview: https://yihui-litedown-pr-205.surge.sh

Updates on every push; removed when this PR closes.

yihui and others added 3 commits November 19, 2026 18:16
`NULL[[b]] = <vector>` is an error in R < 4.0 ("more elements supplied than
there are to replace"), so the first book chapter that stored its cross-reference
db into the NULL `.env$refs` failed. Covered by the book index preview test.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@yihui
yihui merged commit 0d9c292 into main Nov 20, 2026
20 checks passed
@yihui
yihui deleted the book-index-preview branch November 20, 2026 02:18
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.

1 participant