programming r


R

macOS

Learn how to use Terminal.app and/or install iTerm2.app

Installation

Prerequisites:

You will need to:

  1. install Homebrew
  2. install R
  3. install R Studio (optional)
   /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
   brew install r
   https://www.rstudio.com/products/rstudio/download/

Packages

After installing Homebrew, you may want to install the following libraries

   brew install gtk-mac-integration

And then proceed to install R packages like:

   R
   install.packages("ggplot2")
   install.packages("RGtk2")

Advertisement