From 320630504371ee8fd92f8122e8372496b74692c8 Mon Sep 17 00:00:00 2001 From: pdiakumis Date: Wed, 31 Jul 2024 14:29:58 +1000 Subject: [PATCH] use system cp command --- R/main.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/main.R b/R/main.R index 476edf6..c4116d3 100644 --- a/R/main.R +++ b/R/main.R @@ -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)