Skip to content

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

Open
weibelzahl wants to merge 1 commit intoswirldev:masterfrom
weibelzahl:master
Open

fix error introduced by strict error handling for logical operators #917
weibelzahl wants to merge 1 commit intoswirldev:masterfrom
weibelzahl:master

Conversation

@weibelzahl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant