Uses the rlang::abort() function to escalate a warning message into an Error to prevent code from running any further.

escalate_warning(w)

Arguments

w

a warning object (which has a message inside it)