Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFix error True/False is expected but vector is received in assertion #17
Conversation
|
Thank you for the fix. I have to say that I did not see an exception (under R 3.3.2 and earlier versions) but you are right that the old code does not test the stated. Note that I will merge your pull request but loosen the check afterwards as it is sufficient that |
The previous code was always triggering an exception (R 3.3.1) when evaluating the if() statement because a vector was used on the right hand side of a logical && predicate. Additionally, the logical predicate itself was incorrect according to the meaning of the error message in the stop() call.
Also, the modified expression is now more generic because it allows for the presence of other names in the res list in addition to the two names that are required to be present.