stan-dev / rstanarm

rstanarm R package for Bayesian applied regression modeling
https://mc-stan.org/rstanarm
GNU General Public License v3.0
385 stars 132 forks source link

Use | instead of || for or condition #594

Closed sambrilleman closed 1 year ago

sambrilleman commented 1 year ago

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.