Error message content: Problem statement
Every error message should start with a general statement of the problem. It should be concise, but informative (This is hard!).
- Clear cause: use “must”
- “
nmust be a numeric vector, not a character vector.” - “
nmust have length 1, not length 2.”
- “
- Else: use “can’t”
- “Can’t find column
bin.data.” - “Can’t coerce
.xto a vector.” - “Can’t find specified
.depthin.x.”
- “Can’t find column
cli: Unnamed.