Skip to content

Add error messages to kmcurvely() when endpoints or subgroup is not defined in the metadata - #34

Merged
LittleBeannie merged 1 commit into
mainfrom
33-bug-of-kmcurvely
Jul 28, 2026
Merged

Add error messages to kmcurvely() when endpoints or subgroup is not defined in the metadata#34
LittleBeannie merged 1 commit into
mainfrom
33-bug-of-kmcurvely

Conversation

@LittleBeannie

@LittleBeannie LittleBeannie commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

To solve issue #33

@LittleBeannie LittleBeannie self-assigned this Jul 27, 2026
@LittleBeannie LittleBeannie linked an issue Jul 27, 2026 that may be closed by this pull request
@LittleBeannie LittleBeannie mentioned this pull request Jul 27, 2026
Comment thread R/kmcurvely.R
Comment on lines +105 to +108
has_parameter_mapping <- function(name) {
mapping <- metalite::collect_adam_mapping(meta, name)
!is.null(mapping$subset) && !is.null(mapping$label)
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If an additional function is required, it would be better to define it outside of this function as a helper function, or place it in a separate file (e.g., utils.R) with @noRd.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For now, this function will remain as a local utility within the kmcurvely module, as that is currently its only use case.
This is a temporary solution. If this function is needed in other parts of the codebase in the future (i.e., if it is called more frequently), we should refactor it into a more general, shared utility module to avoid code duplication.

@LittleBeannie
LittleBeannie merged commit bb09f5d into main Jul 28, 2026
8 checks passed
@LittleBeannie
LittleBeannie deleted the 33-bug-of-kmcurvely branch July 28, 2026 13:46
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 of kmcurvely

2 participants