swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.13k stars 600 forks source link

fix error introduced by strict error handling for logical operators #917

Open weibelzahl opened 11 months ago

weibelzahl commented 11 months ago

Starting from R4.3.0, the logical operators && and || throw errors when called with non-scalar values (rather than silently using the first value only). Some lessons are no longer working due to this behaviour change: https://stackoverflow.com/questions/76273085/r-trouble-in-swirl-when-using The commit simply checks whether the value is atomic before processing it further.