If you find any typos, errors, or places where the text may be improved, please let me know. The best ways to provide feedback are by GitHub or hypothes.is annotations.
Adding an annotation using hypothes.is. To add an annotation, select some text and then click the on the pop-up menu. To see the annotations of others, click the in the upper right-hand corner of the page.
6 Workflow: scripts
Go to the RStudio Tips twitter account, https://twitter.com/rstudiotips and find one tip that looks interesting. Practice using it!
What other common mistakes will RStudio diagnostics report? Read https://support.rstudio.com/hc/en-us/articles/205753617-Code-Diagnostics to find out.
You should read that page, but some other diagnostics for R code include the following.
- Check for missing, unmatched, partially matched, and too many arguments to functions.
- Warn if a variable is not defined.
- Warn if a variable is defined but not used.
- Check that the code style conforms to the tidyverse style guide.