What to do when your R Markdown file does not knit

Author

Andrew Dickinson

If your R Markdown file fails to knit in RStudio, consider the following general steps to identify and resolve the issue. The first two steps are crucial—95% of all issues can be solved by reading the error message and carefully testing each coding chunk one at a time.

  1. Check the error message:
  1. Examine code chunks:
  1. Reset the R session:
  1. Check YAML header:
  1. Restart RStudio session:
  1. Verify your R setup:
  1. Seek assistance from the GE during lab or via email. If you’re still unable to resolve the issue, reach out to Andrew either after class or via email