Commit 23e3dd6b authored by Holger Brandl's avatar Holger Brandl

fixed deleteion of md and figures directory

parent e3309547
......@@ -106,3 +106,11 @@ knitr::opts_knit$set(
rmarkdown::render(input=tmpScript,output_file=str_replace(basename(r_script), ".R", ".html"),
output_format=rmarkdown::html_document(toc = opts$toc, keep_md=T, pandoc_args=paste0("--include-in-header=", jsAddons)),
unlink(str_replace(basename(r_script), ".R", ".md"))
## delete figures directory since all plots should be embedded anyway
echo("deleteing", paste0(str_replace(basename(r_script), ".R", ""), "_files"))
unlink(paste0(str_replace(basename(r_script), ".R", ""), "_files"), recursive=T)
Markdown is supported
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