Skip to content

Commit

Permalink
Fixes #1055 update word reports (#1062)
Browse files Browse the repository at this point in the history
Actually, this was not a pandoc issue but a missing `overwrite` parameter in `copyReport()`
  • Loading branch information
pchelle authored Jun 9, 2023
1 parent 96e1ebe commit d19092e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utilities-writing-report.R
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ copyReport <- function(from, to, copyWordReport = TRUE, keep = FALSE) {
dir.create(toFolder, showWarnings = FALSE, recursive = TRUE)
file.copy(from, to, overwrite = TRUE)
if (copyWordReport) {
file.copy(from = fromWordReport, to = toWordReport)
file.copy(from = fromWordReport, to = toWordReport, overwrite = TRUE)
}

# Copy the figures in destination folder to have them available for new report
Expand Down

0 comments on commit d19092e

Please sign in to comment.