Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Aug 1, 2025

Fixes #1754

@EmilHvitfeldt can you please take a quick look? No need for a detailed review but this was me + claude code so worth checking a few to make sure we didn't over index on the wrong pattern.

@hadley hadley requested a review from EmilHvitfeldt August 1, 2025 15:10
Copy link
Member

@EmilHvitfeldt EmilHvitfeldt left a comment

Choose a reason for hiding this comment

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

looking good. found 1 oddity

act <- quasi_label(enquo(object), label)
stopifnot(is.character(regexp), length(regexp) == 1)
stopifnot(is.character(act$val))
check_character(object)
Copy link
Member

Choose a reason for hiding this comment

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

this feels out of place, it is the only time we are checking the object using these checkers

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed, but I wanted to preserve the behaviour of the existing code.

@hadley hadley merged commit 77ae470 into main Aug 1, 2025
10 of 11 checks passed
@hadley hadley deleted the argument-checking branch August 1, 2025 20:12
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.

use_standalone("r-lib/rlang", "types-check") instead of home grown argument checkers

3 participants