Skip to content
Snippets Groups Projects
Commit 02b4ec14 authored by François Michonneau's avatar François Michonneau Committed by GitHub
Browse files

Merge pull request #62 from fmichonneau/fix-knitr-env

use anonymous function to generate markdown files
parents 0c9c1533 4e8365b0
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