Skip to content

[feat]: add check in create_figures/tables_doc to ensure chunk labels are unique #451

@Schiano-NOAA

Description

@Schiano-NOAA

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

Accidentally re-run create_figures/tables_doc or have to run fxn again and the rda figures/tables that I already have are repeated and I have to do manual work. It would be great if this is automated to check for duplicates and skip or remove these duplicated pieces

Describe the solution you would like.

option 1:

  • add in rda loading chunks
  • find labels for all chunks
  • id duplicated locations of chunks and remove duplicates
  • output warning in console that some chunks were removed

option 2:

  • check if the .rda path is already in a line in the doc
  • skip this in the process if it is already found

Describe alternatives you have considered

keeping as is

Additional context

No response

Metadata

Metadata

Labels

No fields configured for Feature.

Projects

Status
In review

Relationships

None yet

Development

No branches or pull requests

Issue actions