'get_report_config' reads in the config YAML file. Missing fields will be set to default values and a warning will be issued. The config file can have the following fields:
current_population
: Integer. Current population size.avg_5yr_population
: Integer. Average population over the last 5 years.rounding_decimals
: Integer. Number of decimals to round report values to.generate_csvs
: Logical. Whether to generate CSV files.trend_threshold
: Numeric. Threshold for trend calculations.
Details
See the example config file here:
system.file("sample_data/sample_config.yml", package = "epitraxr")
.
Examples
config_file <- system.file("sample_data/sample_config.yml",
package = "epitraxr")
report_config <- get_report_config(config_file)