R must be installed before installing RStudio
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)
NYU Virtual Computing Lab (NYU Login Needed)
Uses Windows
Posit Cloud (Free and Academic Pricing Available)
Uses Ubuntu Linux
Exporting (Knitting) from RMarkdown requires a LaTeX installation.
Easy method (Works in most cases)
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
Datacamp (Free Access with Github Student Developer Pack)
Posit Documentation on RMarkdown
RMarkdown uses Pandoc's implementation of Markdown.
R Markdown: The Definitive Guide (2023)
More Advanced: R Markdown Cookbook (2024)
DAGitty for Directed Acyclic Graphs
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.