Function to create captions and alternative text that contain key quantities from the model results file.

write_captions(dat, dir = NULL, year = NULL)

Arguments

dat

A data frame returned from `asar::convert_output()`.

dir

Directory where the output captions and alt text file should be saved

year

the last year of the data or the current year this function is being performed

Value

Exports .csv with captions and alt text for figures and tables that contain key quantities (e.g., an assessment's start year) that are automatically extracted from the converted model results file.