Skip to content

Commit

Permalink
no clean nor quiet while rendering HTML in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomflavio committed Dec 12, 2024
1 parent 980edfe commit 725f56d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion R/explore.R
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,9 @@ explore <- function(

event(type = "debug", "debug: Converting report to html")
rmarkdown::render(input = paste0(tempdir(), "/actel_report_auxiliary_files/actel_explore_report.Rmd"),
output_dir = paste0(tempdir(), "/actel_report_auxiliary_files"), quiet = TRUE)
output_dir = paste0(tempdir(), "/actel_report_auxiliary_files"),
quiet = !getOption("actel.debug", default = FALSE),
clean = !getOption("actel.debug", default = FALSE))

event(type = "debug", "debug: Moving report")
file.copy(paste0(tempdir(), "/actel_report_auxiliary_files/actel_explore_report.html"), reportname)
Expand Down
4 changes: 3 additions & 1 deletion R/migration.R
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,9 @@ migration <- function(
"actel_migration_report.Rmd"),
output_dir = paste0(tempdir(),
"/actel_report_auxiliary_files"),
quiet = TRUE)
quiet = !getOption("actel.debug", default = FALSE),
clean = !getOption("actel.debug", default = FALSE))


event(type = "debug", "Moving report")
file.copy(from = paste0(tempdir(),
Expand Down
4 changes: 3 additions & 1 deletion R/residency.R
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,9 @@ residency <- function(
event(type = "debug", "Converting report to html")
rmarkdown::render(input = paste0(tempdir(), "/actel_report_auxiliary_files/actel_residency_report.Rmd"),
output_dir = paste0(tempdir(), "/actel_report_auxiliary_files"),
quiet = TRUE)
quiet = !getOption("actel.debug", default = FALSE),
clean = !getOption("actel.debug", default = FALSE))


event(type = "debug", "Moving report")
file.copy(paste0(tempdir(), "/actel_report_auxiliary_files/actel_residency_report.html"), reportname)
Expand Down

0 comments on commit 725f56d

Please sign in to comment.