Error message content: Error details

  1. Describe exact error with x =.
  • x = “Location 100 doesn’t exist.”
  • x = “Result 1 is a character vector.”
  • If uncertain, list issues with "*" =
    • c(“*” = “Size 2: Existing data.”, “*” = “Size 3: Column y.”)
  1. Give contextual info with “i =”.
  • i = “There are only 26 elements.”
  • i = “Only values of size one are recycled.”
  1. If source of error is clear & common, provide a hint with i = ... ?
  • i = “Did you mean Species == \"setosa\"?”
  • i = “Did you use %>% instead of +?”