How can I export one single chapter in html from a bookdown output which is in html too?
preview_chapter() could help you out. Here is an an excerpt from Yihui Xie's book bookdown: Authoring Books and Technical Documents with R Markdown with additional details:
Building the whole book can be slow when the size of the book is big. Two things can affect the speed of building a book: the computation in R code chunks, and the conversion from Markdown to other formats via Pandoc. The former can be improved by enabling caching in knitr using the chunk option cache = TRUE, and there is not much you can do to make the latter faster. However, you can choose to render only one chapter at a time using the function preview_chapter() in bookdown, and usually this will be much faster than rendering the whole book. Only the Rmd files passed to preview_chapter() will be rendered.
it helped, thank you.
r preview_chapter("02_chapter.Rmd") typed in the console did the trick.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.