nmfs-ost / nmfs-ost/asar

[Feature]: add failsafe if labels in alt text/captions csv contain "fig-"

Open
#444 1 comment 0 reactions 1 assignee View on GitHub

@sbreitbart-NOAA is already working on this.

Since Apr 14, 2026.

enhancement triage_needed
Dominant language
R
Stars
44
Forks
10
Avg merge
1d 19h
Merged PRs (30d)
18

Description

Is your feature request related to a problem? Please describe.

It's understandable that someone would set up the workflow with identical labels in the captions/alt text csv and code chunks. However, labels in the csv don't need to contain "fig-". If they do, add_alttext() will likely fail because the labels in the code chunks are identical to the labels in the csv. Labels in the csv need to be identical to labels in the code chunks MINUS "fig-" or "tab-".

Describe the solution you would like.

Add failsafe that checks alt text/captions csv's "labels" column and alerts user if if labels contain "fig-" or "tab-".

Describe alternatives you have considered

NA

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.