Skip to content

Commit

Permalink
make clean-up regex more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyngs committed May 30, 2021
1 parent ad3486c commit cd9663c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts_and_filters/knit-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ knit_thesis <- function(input, output_format = "pdf", ...){
if ("pdf" %in% output_format){
bookdown::render_book(input, output_format = "bookdown::pdf_book")

file.remove(list.files(pattern = "*.(log|mtc|maf|aux|bcf|lof|lot|out|toc)"))
file.remove(list.files(pattern = "*\\.(log|mtc\\d*|maf|aux|bcf|lof|lot|out|toc)$"))
}

if ("bs4" %in% output_format){
Expand Down

0 comments on commit cd9663c

Please sign in to comment.