Skip to content
Snippets Groups Projects
Commit 23e3dd6b authored by Holger Brandl's avatar Holger Brandl
Browse files

fixed deleteion of md and figures directory

parent e3309547
No related branches found
No related tags found
No related merge requests found
......@@ -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)),
output_dir=getwd())
if(!keep_markdown_files){
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment