* fix: restore valid AB codes mangled by generalise_antibiotic_name() (#245)
When as.ab() received a vector containing both valid AB codes (like ETH,
PHN, PHE, STH, THA, MTH, THI1) and an untranslatable value, the fast
path at line 100 was skipped. The slow path then applied
generalise_antibiotic_name(), which rewrites "TH"->"T" and "PH"->"F",
mangling these short AB codes (e.g. ETH->"ET", PHN->"FN") so they could
no longer be found in the lookup table.
Fix: save the pre-generalised values before applying
generalise_antibiotic_name(), then restore any elements that were already
valid AB codes in their original form.
https://claude.ai/code/session_01Sujw89qa48NoUmMPDBJLz9
* fix: use toupper() in AB code restoration to handle lowercase input (#245)
Ensures that lowercase user input (e.g. 'eth', 'phn') is matched
case-insensitively against the uppercase AB codes in $ab, and that
the restored value is stored in uppercase to match the lookup table.
https://claude.ai/code/session_01Sujw89qa48NoUmMPDBJLz9
* revert: remove unnecessary toupper() since x is already uppercased
https://claude.ai/code/session_01Sujw89qa48NoUmMPDBJLz9
* Revise versioning and date bump requirements for PRs
Updated versioning instructions for pull requests to include date bump.
---------
Co-authored-by: Claude <noreply@anthropic.com>
* add CLAUDE.md with project context for Claude Code
Provides development commands, architecture overview, file conventions,
custom S3 classes, data files, testing setup, and versioning guidelines
to help Claude Code assist effectively in this repository.
https://claude.ai/code/session_01L3fTxqsg3Gc6J1znpWN1Mx
* add CLAUDE.md to .Rbuildignore
Excludes the Claude Code context file from the R package build tarball.
https://claude.ai/code/session_01L3fTxqsg3Gc6J1znpWN1Mx
* document version-bump requirement for every PR in CLAUDE.md
Each PR must increment the .9zzz dev counter by 1 in both
DESCRIPTION (Version: field) and NEWS.md (top-level heading).
https://claude.ai/code/session_01L3fTxqsg3Gc6J1znpWN1Mx
---------
Co-authored-by: Claude <noreply@anthropic.com>