1.3 When things go wrong

First things first: EVERYONE makes mistakes and tings WILL go wrong.

  • Common Errors:
    • Capitalization
    • Misspelling
    • Closing punctuation
    • Continuing punctuation
    • Conflicting code
    • Copy/ paste errors
    • Libraries not loaded
    • Unsaved objects
  • Troubleshooting
    • Parse your error message to find helpful information
    • Run code one line at a time
    • Strategic searching: copy/paste error message into Google
  • When you’re really stuck
    • Turn it off and on again
    • Take a break
    • Ask someone for help

For more details, see the section in R for Graduate Students discussing troubleshooting error messages