Skip to content

Conversation

@dshkol
Copy link
Collaborator

@dshkol dshkol commented Jan 22, 2026

Summary

This PR fixes critical bugs and typos identified in the code audit.

Bug Fixes

ID Issue File Fix
H2 Parenthesis in nrow() cansim_vectors.R:522 nrow(failed_coordinates > 0)nrow(failed_coordinates) > 0
H3 Typo in attribute name cansim_metadata.R:393 "langauge""language"
H4 duplicated() misses first cansim_parquet.R:182 Added `
H6 Regex typo cansim_parquet.R:619 _sqlte_fra$_sqlite_fra$
H7 Wrong French source cansim_tables_list.R:113 subjects$subjectEnsubjects$subjectFr

Typo Corrections

ID Issue Files Fix
M5 "Unkown" typo cansim.R, cansim_helpers.R → "Unknown" (4 occurrences)
M6 "gplimpse" typo cansim_sql.R:28 → "glimpse"
M7 "failty" typo cansim_helpers.R → "faulty" (2 occurrences)
L4 "pr" typo cansim.R:5 → "or"
L5 Redundant parens cansim.R:11 Remove (strip_classification_code)

Testing

  • ✅ All tests pass
  • ✅ Package loads successfully

Related Issues

Closes #145, #147

🤖 Generated with Claude Code

mountainMath and others added 3 commits November 19, 2025 20:22
Bug Fixes:
- H2: Fix parenthesis bug in nrow(failed_coordinates) > 0
- H3: Fix "langauge" typo -> "language" in attribute name
- H4: Fix duplicated() to catch ALL duplicate headers, not just second occurrence
- H6: Fix "_sqlte_fra$" regex typo -> "_sqlite_fra$"
- H7: Fix subjectFr using wrong source (subjectEn -> subjectFr)

Typo Corrections:
- M5: Fix "Unkown" -> "Unknown" (4 occurrences)
- M6: Fix "gplimpse" -> "glimpse" in documentation
- M7: Fix "failty" -> "faulty" in error messages (2 occurrences)
- L4: Fix "pr" -> "or" in roxygen documentation
- L5: Remove redundant (strip_classification_code) in param docs

Closes #145, #147

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mountainMath mountainMath changed the base branch from master to v0.4.5 January 22, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: French language output issues

3 participants