compile_report: Produces a readable summary of event reports from the...

View source: R/database_output.R

compile_reportR Documentation

Produces a readable summary of event reports from the election violence database.

Description

Produces a readable summary of event reports from the election violence database.

Usage

compile_report(
  event_report_id,
  data_location = "database",
  output_format = "html_document",
  output_file = NULL,
  date_report_format = "%A, %d %B %Y",
  report_title = "Event Reports from Election Violence Database"
)

Arguments

event_report_id

the event report id or ids to produce the report for.

data_location

where data is retrived from (currently only database supported).

output_format

produces reports as html_document (default), word_document, or pdf_document.

output_file

the file name to save the report to (optional - if not supplied a temp file will be created).

date_report_format

desired date format for output.


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.