Problem
Data-type name strings ("landings", "index", "age_comp", "length_comp") are hardcoded inline in multiple places, e.g., distribution_formulas.R:33 has a FIXME asking for this exact change. #1247 standardised the naming but the centralisation was never done.
If a new data type is added or a name changes, every call site has to be found and updated manually.
Proposal
Define a single authoritative vector (e.g., fims_data_types) as internal package data or a package-level constant, and replace all inline occurrences with references to it.
Related issues
Problem
Data-type name strings (
"landings","index","age_comp","length_comp") are hardcoded inline in multiple places, e.g.,distribution_formulas.R:33has a FIXME asking for this exact change. #1247 standardised the naming but the centralisation was never done.If a new data type is added or a name changes, every call site has to be found and updated manually.
Proposal
Define a single authoritative vector (e.g.,
fims_data_types) as internal package data or a package-level constant, and replace all inline occurrences with references to it.Related issues