Skip to main content

R

Install R, RStudio, or Positron, run R online, and publish documents, plus guides to learning R, text analysis, visualization, and reproducible research.
Published

3 November 2026

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.

  1. R — Download from the Comprehensive R Archive Network (CRAN).
  2. Then choose one editor:

Development setup for compiling packages (extra)

  • Windows — RTools
    • Use installation instructions on package website or use this alternative method: installr package (CRAN site)
      • installr::install.Rtools()
  • macOS — Xcode Command Line Tools (See guide for Terminal commands)

Using R online

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

Handouts

R Markdown Tables (Old Version)

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