使用 R 进行数据分析
macOS 上搭建 R 开发环境
R 语言官方网站:https://www.r-project.org
RStudio 官方网站:https://www.rstudio.com
RStudio 是 R 语言的IDE。
安装包安装
安装 XQuartz
安装 R
安装 RStudio
命令行安装
安装 Homebrew
1
2
3
4/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew tap caskroom/cask
brew install brew-cask
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup安装 R 开发工具
1
2
3
4brew cask install xquartz
brew tap homebrew/science
brew install R
brew cask install rstudio