R
Installation
Normal Setup
R must be installed before installing RStudio
Development Setup for Compling Packages (Extra)
Windows — RTools
Guide by Alphacentauric 2024 (See Section on RTools)
Alternative Method: installr package (CRAN site)
installr::install.Rtools()
macOS — Xcode Command Line Tools (See guide for Terminal commands)
Using R Online
NYU Virtual Computing Lab (NYU Login Needed)
Uses Windows
Posit Cloud (Free and Academic Pricing Available)
Uses Ubuntu Linux
Publishing
Exporting (Knitting) from RMarkdown requires a LaTeX installation.
Easy method (Works in most cases)
Videos
Handouts
External Resources
R
An Introduction to R (2024) — Good Starting Place
Posit Cheatsheets (RStudio)
Best Coding Practices for R (2022)
Chapter 3 Code Structure
R for Graduate Students (2019)
Chapter 3.6 Troubleshooting Errors
Working Directories and Workspaces in the RStudio IDE — Posit
R-Bloggers (Blog about R)
RStudio Keyboard Shortcuts — RBloggers
R Courses
Datacamp (Free Access with Github Student Developer Pack)
RMarkdown
Posit Documentation on RMarkdown
RMarkdown uses Pandoc's implementation of Markdown.
R Markdown: The Definitive Guide (2023)
More Advanced: R Markdown Cookbook (2024)
Miscellaneous
Styling code using Tidyverse style guide with styler package.
See also lintr for error checking.
styler can be used before lintr to reduce errors marked.
lintr can set a style guide using the command lintr::use_lintr(type = "tidyverse")
Note: Related regex information in R for Data Science (2e) book.