How does one "throw" an error in R? I have a function that takes a data frame and some column names and does stuff with them. If the columns don't exist, I want the function to stop and to stop all functions depending on it.
I have looked at "recover" and "browse" and "traceback" but, well, they seemed to be close but not what I am looking for.