I've been running into a problem when I make a change to a specific page, for example, adding a css theme to the YAML
document.
When I do this, I have to re-knit every .rmd
file so that it can produce a new html document with the css theme included. Is there any way for me to knit every .rmd
file at once? Or do I have to re-knit every single .rmd
for my website?
Update:
To solve this problem you can use the following line of code:
rmarkdown::render_site()
This assumes that all your .rmd
files are in the same directory. See here on page 52 for more information.
Just in case anyone reads this again, I wanted to mention blogdown
since this is a popular package for creating blogs with R Markdown. See here and here.