rmr2 installation for RStudio (Mac Users)

install.packages(c("Rcpp","RJSONIO","bitops","digest","functional","reshape2","stringr","plyr","caTools"))

Download package file here

Tools > Install Packages > Install from (Package Archive File (.tar.gz) > rmr2 file

It will be in your Downloads folder.

rmr2 installation for RStudio (PC Users)

install.packages("devtools")

library(devtools)

install_github("RevolutionAnalytics/rmr2", subdir="pkg")