Skip to content

length 1 vector test for 'ALL' conditions#3

Open
hrbrmstr wants to merge 1 commit intoGunratan:masterfrom
hrbrmstr:master
Open

length 1 vector test for 'ALL' conditions#3
hrbrmstr wants to merge 1 commit intoGunratan:masterfrom
hrbrmstr:master

Conversation

@hrbrmstr
Copy link

@hrbrmstr hrbrmstr commented Jun 5, 2021

There are a tiny number of places where a parameter is tested to see if it equals ALL.

If one is running R with the following safety environment variables set:

  • _R_CHECK_LENGTH_1_CONDITION_=TRUE
  • _R_CHECK_LENGTH_1_LOGIC2_=TRUE

they cause the functions with those test to fail. While it's easy to unset them, it is also straightforward to add a check, which is what this PR does.

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