Skip to content

Commit

Permalink
Optionize rmarkdown temp directory suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
certara-tzweers committed Apr 3, 2024
1 parent ee69d59 commit fef975f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ file_with_meta_ext <- function(file, meta_ext, ext = xfun::file_ext(file)) {
}

knitr_files_dir <- function(file) {
paste(xfun::sans_ext(file), "_files", sep = "")
if (!is.null(getOption("rmarkdown.files.suffix"))) {
suffix <- getOption("rmarkdown.files.suffix")
} else {
suffix <- "_files"
}
paste(xfun::sans_ext(file), suffix, sep = "")
}

knitr_root_cache_dir <- function(file) {
Expand Down

0 comments on commit fef975f

Please sign in to comment.