R/add_caption_alt_text.R
add_caption_alt_text.RdAdds a new row to an existing captions_alt_text.csv file with a label, type, caption, and alt_text for a figure or table not present in stockplotr.
String. Figure/table label. For automated matching in asar-based report, it must match the label in your plot's chunk options, MINUS the "fig-" or "tab-". For example, the label "custom_table1" would match up properly with the "tbl-custom_table1" code chunk label.
String. Indicates whether the object is a "table" or "figure"
Options: "figure" or "table"
String. Figure/table caption.
String. Figure alternative text. Unnecessary for text-based tables.
Default: ""
Path. Path to the existing captions_alt_text.csv file that will be updated with the new caption and alt text.
Default: file.path(getwd(), "captions_alt_text.csv")