Render distill article using script or command line

Hello, does anyone know if it is possible to render() a distill article (https://rstudio.github.io/distill/) using rmarkdown::render() on the command line in a script? I really like the distill format, but would like to render multiple RMarkdown files to distill and don't want to have to click "knit" for each article by hand.

Distill using a special format distill::distill_article you provide in output: in yaml.
You should indeed be able to use rmarkdown::render

Did you try already ?

Thanks! Turned out to be easier than I thought. I was making it too complicated. Yes, render("index.Rmd") does the trick and the YAML ensures that it is written to the distill format. Much appreciated.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.