I'm writing a book on cross-platform development using Bookdown and also writing some accompanying blogposts using Blogdown.
Since, I'm describing some stuff which works different on different OSes/environments/etc my code snippets and command calls produce different results. So, I need to somehow “freeze” the output.
Recently, I discovered freeze option in Quarto and I'm wondering is there anything similar in R Markdown to be used with Bookdown and/or Blogdown?
This is a new specific feature for Quarto project, which works with any type of output for Quarto.
There won't be equivalent in bookdown unfortunately. On caching mechanism. You would need to build your own workflow function to store results or .md after knitting to build your book for example.
For blogdown, there is a similar feature - you should read about Workflow at Announcing blogdown v1.0 - Posit . The build_site() has a build_rmd argument that can prevent re rendering Rmd.
Overall, if you are interested by this feature, you should consider using Quarto for the next projects. Or convert your existing one maybe, but not always easy.