Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Jul 30, 2025

This removes one thing to explain about writing expectations. I also improved the error when the argument is missing by passing along the correct call.

@lionel- not sure why we didn't do this before but it seems like it should be safe and it makes life slightly simpler.

This removes one thing to explain about writing expectations. I also improved the error when the argument is missing by passing along the correct call.
@hadley hadley requested a review from lionel- July 30, 2025 16:37
R/quasi-label.R Outdated
Comment on lines 39 to 43
arg <- substitute(quo)
if (is_call(arg, "enquo")) {
arg <- arg[[2]]
}
arg <- deparse1(arg)
Copy link
Member

Choose a reason for hiding this comment

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

slightly icky but ok I guess?

Copy link
Member

Choose a reason for hiding this comment

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

Use as_label() instead of deparse1()?

@hadley hadley merged commit ae1c530 into main Aug 1, 2025
11 checks passed
@hadley hadley deleted the quasi-label-auto-arg branch August 1, 2025 13:00
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.

3 participants