Only cleaning intermediate R files on demand.
[rnaseq-cwl-training.git] / bin / chunk-options.R
index 1890d3213890aefebdc812835c2962b636a08175..5836973226adfab41d0423143aa0cccc09317c43 100644 (file)
@@ -8,18 +8,20 @@ library("knitr")
 
 fix_fig_path <- function(pth) file.path("..", pth)
 
-## We use the swc-rmd- prefix for the figures generated by the lssons
-## so they can be easily identified and deleted by `make clean`.  The
+## We use the rmd- prefix for the figures generated by the lssons so
+## they can be easily identified and deleted by `make clean-rmd`.  The
 ## working directory when the lessons are generated is the root so the
 ## figures need to be saved in fig/, but when the site is generated,
 ## the episodes will be one level down. We fix the path using the
 ## `fig.process` option.
+
 opts_chunk$set(tidy = FALSE, results = "markup", comment = NA,
-               fig.align = "center", fig.path = "fig/swc-rmd-",
+               fig.align = "center", fig.path = "fig/rmd-",
                fig.process = fix_fig_path)
 
 # The hooks below add html tags to the code chunks and their output so that they
 # are properly formatted when the site is built.
+
 hook_in <- function(x, options) {
   stringr::str_c("\n\n~~~\n",
                  paste0(x, collapse="\n"),