Skip to content

Conversation

@hadley
Copy link
Member

@hadley hadley commented Aug 6, 2025

Using chores prompt, followed by a couple of human tweaks

hadley added 2 commits August 6, 2025 07:55
Using chores prompt, followed by a couple of human tweaks
R/skip.R Outdated
if (length(parts) != 2L) {
cli::cli_abort(
"{.arg spec} should be a comparison like '>=' and an R version separated by a space."
"{.arg spec} must be an valid version specification, like {.str >= 4.0.0}, not {.str spec}."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"{.arg spec} must be an valid version specification, like {.str >= 4.0.0}, not {.str spec}."
"{.arg spec} must be an valid version specification, like {.str >= 4.0.0}, not {.str {spec}}."

Just in case you didn't notice!

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooops, thanks!

skip_unless_r("idfjdij")
Condition
Error in `skip_unless_r()`:
! `spec` must be an valid version specification, like ">= 4.0.0", not "spec".
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
! `spec` must be an valid version specification, like ">= 4.0.0", not "spec".
! `spec` must be an valid version specification, like ">= 4.0.0", not "idfjdij".

If you don't want to re-run snaps.

@hadley hadley merged commit cf95bd7 into main Aug 6, 2025
10 of 11 checks passed
@hadley hadley deleted the expect-error-transition branch August 6, 2025 22:30
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