Implement specify_df()#37
Merged
Merged
Conversation
Closes #4
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements a new specify_df() function that allows users to specify the desired format for data frames by combining column specifications. The implementation includes comprehensive error handling and validation utilities.
Key changes:
- Added
specify_df()function for creating data frame specifications - Implemented validation utilities for argument checking (
.check_args_named(),.check_args_spec()) - Added error handling infrastructure with standardized error classes
- Updated documentation with cross-references between specification functions
Reviewed Changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| R/specify_df.R | Core implementation of the new specify_df() function |
| R/aaa-conditions.R | Error handling utilities and validation functions |
| tests/testthat/test-specify_df.R | Comprehensive test suite for specify_df() functionality |
| tests/testthat/test-aaa-conditions.R | Tests for error handling and validation utilities |
| R/specify_fct.R | Updated documentation to reference the new function |
| man/*.Rd | Generated documentation files for the new functions |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
hrmn_fct_spec --> hrmn_spec_fct hrmn_df_spec --> hrmn_spec_df
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4