Skip to content

Add allow_empty to check_logical() and check_character()#1745

Open
olivroy wants to merge 7 commits intor-lib:mainfrom
olivroy:allow-empty
Open

Add allow_empty to check_logical() and check_character()#1745
olivroy wants to merge 7 commits intor-lib:mainfrom
olivroy:allow-empty

Conversation

@olivroy
Copy link
Copy Markdown
Contributor

@olivroy olivroy commented Aug 18, 2024

Closes #1734.

Since this is developper-facing, I think it is okay not to worry about allow_empty meaning different things for check_string() and check_character() after all.

Comment thread tests/testthat/test-standalone-types-check.R Outdated
Comment thread tests/testthat/test-standalone-types-check.R Outdated
jonthegeek added a commit to jonthegeek/rlang that referenced this pull request Sep 19, 2025
I think this finishes everything for r-lib#1724. The rest was fixed in r-lib#1742. A separate PR, r-lib#1745, additionally adds `allow_empty`, but I wanted to leave that out of this to make it easier to review the one small, relevant change.

I didn't add add anything to NEWS.md, since the standalone kinda has its own news. I'm not sure if it would be better to also mention is in the main NEWS.md to make it more visible.

Fixes r-lib#1724.
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.

1 participant