Here are some references I’ve found particularly useful when developing or debugging R code. When trying something new, I like to have a user’s guide open at my left elbow, a language reference guide open at my right elbow, and a steaming cup above the keyboard. (With R, that cup usually needs to be a soothing glass of Riesling instead of the usual jolt of coffee.) When debugging, I like to have a debugger reference on the left, and a large unloaded revolver at my right. (The bugs find the revolver intimidating, and I find that angry clicking sound more rewarding than admitting my programming errors.)
Framework
To effectively learn a new programming language, I like having a well-organized written framework that guides my perspective on the structure and use of that language. Here are a couple of on-line documents that provide that kind of framework.
http://www.statmethods.net/r-tutorial/index.html
R User’s Guides
These focus on techniques for using specific methods. They are generally stronger than beginner’s introductions.
http://manuals.bioinformatics.ucr.edu/home/programming-in-r
R Reference Guides
These provide encyclopedic reference on the details of function and syntax.
https://cran.r-project.org/doc/manuals/r-release/R-lang.html
https://www.rdocumentation.org/
R Style Guides
These provide some best practices on structuring the code.
http://adv-r.had.co.nz/Style.html
https://google.github.io/styleguide/Rguide.xml
https://rstudio-pubs-static.s3.amazonaws.com/149679_0f07bbb45e5c4f3887d64c0152e0b747.html#/
http://adv-r.had.co.nz/Style.html
http://web.stanford.edu/class/cs109l/unrestricted/resources/google-style.html
https://github.com/rdatsci/PackagesInfo/wiki/R-Style-Guide
R Cookbooks
Click to access R%20Cookbook.pdf
Click to access R%20Graphics%20Cookbook.pdf
R Tutorials
The better organized on-line tutorials easily serve as user’s guides.
http://www.cyclismo.org/tutorial/R/
https://www.tutorialspoint.com/r/
https://cran.r-project.org/doc/manuals/r-release/R-intro.html
https://www.rstudio.com/online-learning/#R
https://www.rstudio.com/resources/webinars/
(R logo provided courtesy of R Foundation, distributed under Creative Commons Attribution-ShareAlike 4.0 International license.)