stop_if_none doesn't behave like I expected. Shouldn't it be equivalent to stop_if_not(any()) ?
I am a french speaker but that is how I understand the term "none" = "not any"
attempt::stop_if_none(c(T, T), msg = "Error") # No error, fine for me
attempt::stop_if_none(c(F, F), msg = "Error") # Error, fine for me
attempt::stop_if_none(c(T, F), msg = "Error") # Error, while I was expecting No error
attempt::stop_if_not(any(c(T, T)), msg = "Error") # No error
attempt::stop_if_not(any(c(F, F)), msg = "Error") # Error
attempt::stop_if_not(any(c(T, F)), msg = "Error") # No error
stop_if_none
doesn't behave like I expected. Shouldn't it be equivalent tostop_if_not(any())
? I am a french speaker but that is how I understand the term "none" = "not any"