Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify skip condition #146

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Simplify skip condition #146

merged 1 commit into from
Jan 16, 2025

Conversation

MichaelChirico
Copy link
Contributor

@MichaelChirico MichaelChirico commented Jan 15, 2025

c.f.

foo = function(nm) c(a=FALSE)[nm]

skip_if_not(isTRUE(foo('a')[[1]]))
# Error: Reason: isTRUE(foo("a")[[1]]) is not TRUE

skip_if_not(foo('a'))
# Error: Reason: foo("a") is not TRUE

@DavisVaughan DavisVaughan merged commit 9d3ad55 into r-lib:main Jan 16, 2025
12 checks passed
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.

2 participants