R
Install R, RStudio, or Positron, run R online, and publish documents, plus guides to learning R, text analysis, visualization, and reproducible research.
Installation notes, ways to run R online, and publishing setup for R and RStudio or Positron. Topic guides for learning R, workflow, visualization, text analysis, and more are listed below.
Guides
No matching items
Installation
Normal setup
R must be installed before installing RStudio or Positron.
- R — Download from the Comprehensive R Archive Network (CRAN).
- Then choose one editor:
- RStudio Desktop — Posit’s long-standing R editor.
- Positron — Posit’s newer editor for R and Python.
Development setup for compiling packages (extra)
Using R online
- NYU Virtual Computing Lab — NYU login: Online lab that runs Windows.
- Posit Cloud (Free and Academic Pricing Available)
- Uses Ubuntu Linux
- GitHub Education gives access to Codespaces
Publishing
- Quarto should be downloaded as a binary for installation from the Quarto website.
- Exporting (Knitting) from R Markdown or Quarto requires a LaTeX installation.
- Easy method (Works in most cases)
- Advanced (Works in all cases, but difficult to manage)
Videos
- How to Install R and RStudio on Windows 11 — Video: Installation walkthrough for Windows 11.
- How to Install R and RStudio on Mac / MacOS (2024) — Video: Installation walkthrough for macOS.
- R Tutorials and Package Reviews — Video: YouTube channel by Albert Rapp.
- Positron IDE for R & Python: How to Install & Use — Video: By Statistics Globe, featuring @milos-makes-maps.
- Getting Started with Positron: A Quick Tour — Video: By Posit PBC.
- Funny Video about Python vs. R — Video: By Luke Barousse.
Handouts
Data types
| Data Type | Dimensions | Homogeneous? | Key use case |
|---|---|---|---|
| Vector | 1D | Yes | Basic data storage |
| List | 1D (nested possible) | No | Collection of various data types |
| Matrix | 2D | Yes | Mathematical operations |
| Data Frame | 2D | No (columns can differ) | Tabular data analysis |
| Array | 2D or more | Yes | Multi-dimensional data |