Skip to content

Commit

Permalink
update/add comments in print_report()
Browse files Browse the repository at this point in the history
  • Loading branch information
Karim-Mane authored and Bisaloo committed Aug 12, 2024
1 parent 9d95b89 commit 87744a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/print_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ print_report <- function(data,
format = "html",
print = TRUE) {

# extract report and check whether any cleaning operation has been performed
# extract report, check whether any cleaning operation has been performed, and
# allow for only HTML output format for the report.
report <- attr(data, "report")
stopifnot(
"No report associated with the input data." = !is.null(report),
Expand All @@ -82,6 +83,7 @@ print_report <- function(data,
report[["logo"]] <- system.file(man_path, "logo.svg",
package = "cleanepi")

# render the Rmd file to generate the report
file_and_path <- file.path(tempdir(), output_file_name)
message("Generating html report in ", tempdir())
rmarkdown::render(
Expand Down

0 comments on commit 87744a3

Please sign in to comment.