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 | instead of || for or condition #594

Merged
merged 1 commit into from
Jul 9, 2023

Conversation

sambrilleman
Copy link
Collaborator

Changes introduced in R>=4.3 mean that the || operator returns an error when it is used to evaluate an or condition for a length > 1 vector. The fix here is to instead use the vectorised form, | (which probably should have been used in the first place...).

Fixes #593.

Changes introduced in R>=4.3 mean that the `||` operator returns an error when it is used to evaluate an or condition for a length > 1 vector. The fix here is to use the vectorised form - `|` - instead (which probably should have been used in the first place...).
@sambrilleman sambrilleman added bug survival Issues related to survival analysis functionality labels Jul 9, 2023
@sambrilleman sambrilleman merged commit 3a41b19 into feature/survival Jul 9, 2023
@sambrilleman sambrilleman deleted the bug_fix_for_or_condition branch July 9, 2023 05:48
sambrilleman added a commit that referenced this pull request Nov 5, 2023
Same as #594. But must have missed the use of it in log_lik.R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug survival Issues related to survival analysis functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant