+ - 0:00:00
Notes for current slide
Notes for next slide

Part 3

R Programming

Jessica Minnier

2022-01-18

1 / 13

What do I do with Errors?

2 / 13

3 / 13

Understanding the difference between warnings and errors

  • A warning is an indication that the data or arguments isn't quite what the function expected.

    • You can usually run the code, but you should be careful about it and verify the output.
  • An error means that the code can't execute at all given what you have given the function.

    • Errors can be difficult to understand, which is why...
4 / 13

Googling is StandaRd pRactice foR eRRors

The first thing I do when I encounter an error is to search for the error. I usually start with Google.

I don't know everything, and the odds are that I made a mistake in understanding the documentation.

There are some resources that I especially check (in order):

5 / 13

Have someone else look at your code

  • We all have blind spots
  • Someone else can more easily find the misplaced {}, (), or misspellings
6 / 13

Usually, the error you're looking for is at the bottom

There will usually be a bunch of errors generated, but

The one you're interested in is usually the last one.

7 / 13

Where do I ask for help?

I'm trying to be as helpful as I can, but I can't answer all of your questions.

The following communities are extremely helpful to beginners:

8 / 13

9 / 13

10 / 13

What do I do with Errors?

2 / 13
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
oTile View: Overview of Slides
Esc Back to slideshow