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

Use early returns for zero-length inputs #15

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

rossellhayes
Copy link
Owner

In R < 4.2, mixed zero- and non-zero-length inputs to Vectorize(), Map() and mapply() produce an error. Early returns ensure their results are consistent with stringr.

@rossellhayes rossellhayes added the bug Something isn't working label Mar 2, 2023
@rossellhayes rossellhayes self-assigned this Mar 2, 2023
rossellhayes added a commit to rossellhayes/plu that referenced this pull request Mar 2, 2023
@rossellhayes rossellhayes merged commit 794c56f into main Mar 2, 2023
@rossellhayes rossellhayes deleted the fix/type-consistency-early-returns branch March 2, 2023 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant