Skip to content

Commit

Permalink
Merge pull request #62 from /issues/61-cp
Browse files Browse the repository at this point in the history
Use system cp command
  • Loading branch information
sigven authored Aug 1, 2024
2 parents bc2206f + 3206305 commit d127289
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ write_cpsr_output <- function(report,
)
pcgrr::mkdir(tmp_quarto_dir1)
# files get copied under tmp/templates/
file.copy(cpsr_rep_template_path, tmp_quarto_dir1, recursive = TRUE, overwrite = TRUE)
# see https://github.com/sigven/cpsr/issues/61
# file.copy(cpsr_rep_template_path, tmp_quarto_dir1, recursive = TRUE, overwrite = TRUE)
system2("cp", args = c("-r", shQuote(cpsr_rep_template_path), shQuote(tmp_quarto_dir1)))
# so now overwrite the variable
tmp_quarto_dir <- file.path(tmp_quarto_dir1, templates_dir)

Expand Down

0 comments on commit d127289

Please sign in to comment.