Repository navigation
Handle mean(a,b) under R's startsWith() - #6291
Merged
Merged
Conversation
|
Generated via commit a89f2e9 Download link for the artifact containing the test results: ↓ atime-results.zip Time taken to finish the standard R installation steps: 12 minutes and 17 seconds Time taken to run |
Member
|
nice work thanks! please add NEWS item. |
Member
Author
|
We are just restoring a behavior present on CRAN, so no NEWS. i.e. #6232 is a regression in dev that we've fixed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Part of #6284
We used to have a backport:
substr()coerces its argument to character, butbase::startsWith()does not, hence the change in behavior. Anyway, the use ofstartsWith()was still error-prone; this PR adds further robustness checks as well.Confirmed the test fails on
master, passes on branch. Also confirmed thatas.character()is not sufficient -- withoutisTRUE(), the same test errors as "missing value where TRUE/FALSE needed".Also checked all other
startsWith()call sites to be sure none of them might have silently been accepting non-character input.