Skip to content

Instantly share code, notes, and snippets.

@Planeshifter
Last active January 3, 2018 22:15
Show Gist options
  • Save Planeshifter/7001315 to your computer and use it in GitHub Desktop.
Save Planeshifter/7001315 to your computer and use it in GitHub Desktop.
R_LIBS_USER="~/R"
options(repos = c(CRAN = "http://mirrors.ustc.edu.cn/CRAN/"))
options(rpubs.upload.method = "internal")
if (interactive()) {
suppressMessages(require(devtools))
options(warn = 1)
}
sudo apt-get update
sudo apt-get install r-base r-bae-dev
sudo apt-get install r-cran-xml r-cran-rgtk2 r-cran-rggobi
sudo apt-get build-dep r-base-dev
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install gdebi-core libapparmor1 libjpeg62
wget -c http://download1.rstudio.org/rstudio-0.97.551-amd64.deb
sudo dpkg -i rstudio-0.97.551-amd64.deb
rm -rf rstudio-0.97.551-amd64.deb
install.packages("ggplot2") # powerful printing system
install.packages("devtools") # make dev life easier
install.packages("knitr") # elegant report generator
install.packages("reshape2") # use melt() and *cast() to reshape the data
install.packages("plyr") # The split-apply-combine strategy for R
install.packages("stringr") # work with strings
install.packages("Rglpk") # powerful solver for mixed integer linear programming
install.packages("lpSolve") # including solver for transportation problem and assignment problem
install.packages("goalprog") # goal programming
install.packages("Rdonlp2", repos="http://R-Forge.R-project.org") # powerful solver for smooth nonlinear minimization problem
#install.packages("gafit") # simple package for Genetic Programming, see https://github.com/fyears/gafit-backup
install.packages("igraph") # complex network research
install.packages("TSP") # travelling salesman problem
install.packages("forecast") # forecasting data
install.packages("tseries") # processing time series
install.packages("zoo") # no standar time series
install.packages("xts") # extend ts
install.packages("timeSeries") # another time series format
install.packages("lubridate") # dealing with dates
install.packages("TTR") # Functions and data to construct technical trading rules with R.
install.packages("fACD", repos="http://R-Forge.R-project.org") # ACD model
source("http://www.rmetrics.org/Rmetrics.R")
install.Rmetrics() # install Rmetrics
install.packages("signalextraction") # Real-Time Signal Extraction (Direct Filter Approach).
install.packages("e1071") # SVM
install.packages("nnet") # Feed-forward Neural Networks and Multinomial Log-Linear Models.
install.packages("DMwR") # functions and data accompanying the book "Data Mining with R, learning with case studies"
install.packages("foreign") # read SPSS, SAS, S-PLUS, Stata files
install.packages("ggpmap") # access Google Maps
install.packages("googleVis") # access Google Visualisation API
install.packages("rdatamarket") # access http://datamarket.com/
install.packages("twitteR") # access Twitter
install.packages("Rweibo", repos = "http://R-Forge.R-project.org") # access Weibo
install.packages("caret",dependencies=TRUE) # predictive modelling
install.packages("xtable") # LaTeX and HTML tables
install.packages("rgl") # 3d plotting capabilities
install.packages("quantreg") # quantile regresion package
install.packages("jags") # Bayesian network modelling package
install.packages("gridExtra") # wrapper for grid
# sudo nano /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/CRAN/bin/linux/ubuntu quantal/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment