Skip to content
Snippets Groups Projects
Unverified Commit 4e8365b0 authored by François Michonneau's avatar François Michonneau
Browse files

use anonymous function to generate markdown files

parent ea2a2eec
Branches
Tags
No related merge requests found
......@@ -10,6 +10,6 @@ if (!require("stringr"))
src_rmd <- list.files(pattern = "??-*.Rmd$", path = "_episodes_rmd", full.names = TRUE)
dest_md <- file.path("_episodes", gsub("Rmd$", "md", basename(src_rmd)))
for (i in seq_along(src_rmd)) {
knitr::knit(src_rmd[i], output = dest_md[i])
}
mapply(function(x, y) {
knitr::knit(x, output = y)
}, src_rmd, dest_md)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment