Render a MineSDG report to HTML, PDF, DOCX or XLSX
render_minesdg_report.RdHTML, PDF and DOCX rendering use the Quarto templates shipped in
inst/quarto/ and require the Quarto CLI plus the quarto R
package. XLSX output is delegated to write_report_xlsx
and requires openxlsx2. Rendering happens in a temporary
directory; the installed package is never written to.
Usage
render_minesdg_report(report, output_file,
format = c("html", "pdf", "docx", "xlsx"), template = NULL,
quiet = TRUE)Examples
# \donttest{
rep <- generate_gri_report(demo_mine_sites, site_id = "CU-ATAC",
years = 2023:2024)
out <- render_minesdg_report(rep, file.path(tempdir(), "gri.html"))
# }