DOI-USGS / DOI-USGS/streamMetabolizer
Add alias scheme for arguments in R/mm_name.R
Open
CDI26
- Dominant language
- Stan
- Stars
- 47
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Reminder to implement the alias scheme for arguments in R/mm_name.R
See: https://github.com/DOI-USGS/streamMetabolizer/pull/469#discussion_r3615788808
Set an alias for each type in the argument, i.e.,
```
type=c(m='mle', b='bayes', b2='bayes_2station', n='night', K='Kmodel', s='sim')
```
and then change this code to (1) require exact matches, but accept matches to either the alias or full name, and (2) if an exact match doesn't exist but an approximate match is discovered, throw an informative error that exact matches to the alias or full name are now required. Update docs to reflect this new scheme.
Contributor guide
Assessment
This issue has not been assessed yet.