Skip to contents

Writes a workbook with a Cover sheet (metadata and coverage), the disclosure tables, and a Data Annex containing the bundle's KPI and raw-input tables. Requires the openxlsx2 package.

Usage

write_report_xlsx(report, output_file)

Arguments

report

A minesdg_report object.

output_file

Path of the .xlsx file to write.

Value

The path to the written file, invisibly.

Examples

rep <- generate_gri_report(demo_mine_sites, site_id = "CU-ATAC",
                           years = 2023:2024)
out <- write_report_xlsx(rep, file.path(tempdir(), "gri.xlsx"))