Reshape2 Installation Instructions for R
This method usually works best.
Via RStudio (Regardless or Operating System):

• install.packages(“reshape2”)
• library(“reshape2”)
If the above method has not worked try installing from GitHub as an alternative. Type the command below
directly in RStudio.
Via Github:

devtools::install_github(“hadley/reshape”)
If the methods above did not work you can install via CRAN. When it comes to CRAN there are
different instructions based on the operating system that you use.

Via CRAN:

Ubuntu:
Type the following commands in the terminal:
sudo apt-get update -y

sudo apt-get install -y r-cran-reshape2

Mac:
Type the following command in the terminal:

1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el-
capitan/contrib/3.6/reshape2_1.4.3.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"),
method, available = NULL, destdir = NULL, installWithVers = FALSE)

2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el-
capitan/contrib/3.5/reshape2_1.4.3.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"),
method, available = NULL, destdir = NULL, installWithVers = FALSE)

Windows:
Type the following command in the terminal:
1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
4.0/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method,
available = NULL, destdir = NULL, installWithVers = FALSE)
2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
r-devel-gcc8/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"),
method, available = NULL, destdir = NULL, installWithVers = FALSE)

3) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
3.6/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method,
available = NULL, destdir = NULL, installWithVers = FALSE)

4) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/
3.5/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method,
available = NULL, destdir = NULL, installWithVers = FALSE)

Reshape2 Installation Instructions

  • 1.
    Reshape2 Installation Instructionsfor R This method usually works best. Via RStudio (Regardless or Operating System): • install.packages(“reshape2”) • library(“reshape2”) If the above method has not worked try installing from GitHub as an alternative. Type the command below directly in RStudio. Via Github: devtools::install_github(“hadley/reshape”) If the methods above did not work you can install via CRAN. When it comes to CRAN there are different instructions based on the operating system that you use. Via CRAN: Ubuntu: Type the following commands in the terminal: sudo apt-get update -y sudo apt-get install -y r-cran-reshape2 Mac: Type the following command in the terminal: 1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el- capitan/contrib/3.6/reshape2_1.4.3.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 2) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/macosx/el- capitan/contrib/3.5/reshape2_1.4.3.tgz"), contriburl = contrib.url(CRAN, type = "mac.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) Windows: Type the following command in the terminal: 1) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ 4.0/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE)
  • 2.
    2) install.binaries(reshape2, lib,CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ r-devel-gcc8/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 3) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ 3.6/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE) 4) install.binaries(reshape2, lib, CRAN = getOption("https://cran.r-project.org/bin/windows/contrib/ 3.5/reshape2_1.4.3.zip"), contriburl = contrib.url(CRAN, type = "windows.binary"), method, available = NULL, destdir = NULL, installWithVers = FALSE)