Skip to content

Code cleanup#22

Merged
NErler merged 40 commits intomasterfrom
code-cleanup
Dec 14, 2025
Merged

Code cleanup#22
NErler merged 40 commits intomasterfrom
code-cleanup

Conversation

@NErler
Copy link
Owner

@NErler NErler commented Dec 13, 2025

This pull request contains several improvements and refactorings to the data handling and model setup logic. Key changes include allowing tibbles as input data, enabling overwriting elements in the data list, refactoring of matrix division and model type functions for clarity.

…ions() with get_grouping_levels(), add missing value checks for grouping variables, update tests and documentation accordingly
…ocumentation and unit tests for resolve_family_obj
…) that converts outcome columns to continuous (integer) type columns
…te_analysis_type helpers, improved handling of survival and factor variables, and introduced varname_to_modelframe utility function.
…d to get the correct term name for event indicator colums such as status != "censored" (was removed in commit cb787a6)
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request focuses on code cleanup and refactoring across the test suite and documentation. The changes primarily improve code formatting consistency, add new test coverage for helper functions, and update documentation files. The PR includes reformatting of existing test files to follow consistent style guidelines (improved indentation and line breaks), addition of new test files for previously untested helper functions, updates to snapshot tests reflecting minor numerical changes, and generation of new documentation files for internal helper functions.

Key Changes

  • Reformatted multiple test files with consistent indentation and line breaks for better readability
  • Added comprehensive test coverage for factor_to_integer(), grouping-related functions, and validation functions
  • Updated snapshot test files with minor numerical precision changes
  • Added documentation for internal helper functions and a .lintr configuration file

Reviewed changes

Copilot reviewed 44 out of 45 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/testthat/test-survival.R Reformatted with improved indentation and line breaks
tests/testthat/test-helpfunctions_survival.R New test file for factor_to_integer() function
tests/testthat/test-helpfunctions_formulas_general.R Reformatted with consistent spacing; added test for single formula case
tests/testthat/test-helpfunctions_formulas.R Reformatted and reorganized; removed multi-column outcome test, added I() transformation test
tests/testthat/test-helpfunctions_checks.R Added extensive test coverage for validation and helper functions
tests/testthat/test-helpfunctions2.R New test file for grouping level checking functions
tests/testthat/test-groupings.R Renamed function references and reformatted
tests/testthat/_snaps/glmm.md Updated with minor numerical precision changes
tests/testthat/_snaps/clmm.md Updated with minor numerical precision changes
man/varname_to_modelframe.Rd New documentation file for internal helper function
man/resolve_family_obj.Rd New documentation file for internal helper function
man/rd_vcov.Rd Fixed duplicate description text in documentation
man/paste_analysis_type.Rd New documentation file for internal helper function
.lintr Added linter configuration file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NErler NErler marked this pull request as draft December 14, 2025 08:55
@NErler NErler marked this pull request as ready for review December 14, 2025 15:32
@NErler NErler merged commit dc2d3d0 into master Dec 14, 2025
6 checks passed
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.

2 participants