[WIP] Batch-mode implementation with rmarkdown.