Last active
October 18, 2016 17:43
-
-
Save capm/51426242f6fc703a70bd to your computer and use it in GitHub Desktop.
R: Packages to install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DEVTOOLS | |
library(devtools) | |
build_github_devtools() | |
install.packages("devtools.zip", repos = NULL) | |
unlink("devtools.zip") | |
# RMetrics | |
source('http://www.rmetrics.org/Rmetrics.R') | |
install.Rmetrics() | |
# Additional set of repositories | |
setRepositories(addURLs = c(CRANxtras = 'http://www.stats.ox.ac.uk/pub/RWin')) | |
cran.pkgs=c('xts','quantmod','quadprog','PerformanceAnalytics','ggplot2','gdata','YieldCurve','RQuantLib','robust','leaps','lars','ff','tseries','RlpSolve','RlpSolveAPI','Rsymphony','Ripop','Rsocp','IBrokers','rJava','iplots','miscTools','systemfit','lmtest','np','rgl','sandwich','XML','chron','Kendall','FNN','WDI','animation','tawny','RCurl','termstrc','maRketSim','traitr','truncnorm','data.table','FME','actuar','frmqa','CreditMetrics','crp.CSFP','portfolio','portfolioSim','stockPortfolio','financial','ttrTests','PairTrading','BurStFin','devtools','deducorrect','scales','tourr','objectSignals','objectProperties','plumbr','HiveR','rggobi','Rglpk','Hmisc','sn','ROAuth','twitteR','cwhmisc','lpSolve','sculpt3d','strucchange','rbenchmark','fanplot','nloptr', 'rdatamarket','TableToLongForm','MASS','migest','phaseR', 'TableToLongForm', 'spartan', 'prinsimp','eeptools','xlsx','webvis','gridGraphics','gridGraphviz','qdapRegex','curl','corrplot','FinancialInstrument', "magrittr", "lazyeval", "DBI", "BH","rneos", 'moments', 'pipeR', 'htmlwidgets','sjPlot','R.matlab','wbstats','flexdashboard','addinslist','ggExtra','ggThemeAssist', 'githubinstall', 'readxl', 'hts', 'dygraphs', 'foreach', 'caret', 'deepnet', 'prettydoc', 'forcats', 'anytime', 'depmix', 'depmixS4', 'tidyverse') | |
install.packages(cran.pkgs) | |
'RlpSolve', 'RlpSolveAPI', 'Ripop', 'Rsocp', 'financial', 'ttrTests', 'PairTrading', 'sculpt3d', 'Rsolnp2', 'Ripop', 'Rsocp', 'Rquadprog', 'TrueFX', 'qmao', 'twsInstrument', 'logopt', 'pnl', 'tradesys', 'tableplot', 'scatterplot3d', 'RlpSolve', 'RlpSolveAPI', 'factorAnalyticsUW' | |
Pkg <- c("base","downloader","forecast","httr","jsonlite","lubridate","moments", "PerformanceAnalytics","quantmod","reshape2","RCurl","stats","scales","tseries", "TTR","TSA","xts","zoo") | |
inst <- Pkg %in% installed.packages() | |
if(length(Pkg[!inst]) > 0) install.packages(Pkg[!inst]) | |
instpackages <- lapply(Pkg, library, character.only=TRUE) | |
rforge.pkgs=c('Rdonlp2','Rsolnp2','Ripop','Rsocp','Rquadprog','parma','TrueFX','spd','qmao','twsInstrument','bertin','logopt','pnl','tradesys','candlesticks','tableplot','scatterplot3d','pa','RlpSolve','RlpSolveAPI','factorAnalyticsUW','rPython') | |
rforge.repo='http://R-Forge.R-project.org' | |
install.packages(rforge.pkgs,repo=rforge.repo) | |
install.packages("GARPFRM", repos="http://R-Forge.R-project.org") | |
rforgen.pkgs=c('multicore','Acinonyx','Cairo') | |
install.packages(rforgen.pkgs,repo='http://www.rforge.net/') | |
# Install graphic packages | |
install.packages(c("sparkTable", "iplots","BiplotGUI","iWebPlots", "compareGroups","ChainLadder", "extracat", "vcd", "vcdExtra", "Rcmdr","R.rsp", "brew","WDI","RJSONIO", "playwith")) | |
install.packages("RTAQ", repos="http://R-Forge.R-project.org") | |
install.packages('ProjectTemplate') | |
cran.pkgs=c('quadprog','YieldCurve','leaps','lars','IBrokers','rJava','miscTools','systemfit','lmtest','np','rgl','sandwich','chron','Kendall','FNN','WDI','animation','tawny','RCurl','termstrc','maRketSim','traitr','truncnorm','data.table','FME','frmqa','CreditMetrics','crp.CSFP','portfolio','portfolioSim','stockPortfolio','financial','ttrTests','PairTrading','BurStFin','deducorrect','scales','tourr','objectSignals','objectProperties','plumbr','HiveR','rggobi','sn','ROAuth','twitteR', 'ROI', 'ROI.plugin.glpk', 'ROI.plugin.quadprog', 'ROI.plugin.symphony', "matlab", "pracma", "dlm", 'ESGtoolkit','FRAPO', 'FinCal', 'backtest', 'financial', 'm4fe', 'opefimor', 'XBRL') | |
source("http://bioconductor.org/biocLite.R") | |
biocLite("Biobase") | |
biocLite("AnnotationDbi") | |
biocLite("annotate") | |
biocLite("geneplotter") | |
# Mostly Harmless | |
options(repos = c(XRAN = "http://mostly-harmless.github.io/radiant_miniCRAN/")) | |
install.packages("radiant") | |
# GitHub | |
install_github('hadley/assertthat') | |
install_github('hadley/dplyr') | |
install_github('rstudio/ggvis') | |
install_github('rstudio/shiny') | |
install_github('rstudio/shiny-incubator') | |
install_github("rstudio/packrat") | |
install_github('rstudio/shinyapps') | |
install_github('mostly-harmless/select2shiny') | |
install_github('mostly-harmless/radiant') | |
install_github(c("ramnathv/htmlwidgets", "smartinsightsfromdata/rpivotTable")) | |
install_github('smartinsightsfromdata/shinyhdtable') | |
install_github('rich-iannone/DiagrammeR') | |
install_github('hadley/ggplot2') | |
install_github('hadley/plyr') | |
install_github('hadley/lubridate') | |
install_github('hadley/testthat') | |
install_github('hadley/rvest') | |
install_github('caseyWebb/selectr') | |
install_github('jrnold/ggthemes') | |
install_github('garrettgman/ggsubplot') | |
install_github('jcheng5/googleCharts') | |
install_github('johnmyleswhite/ProjectTemplate') | |
install_github('yihui/knitr') | |
install_github('yihui/formatR') | |
install_github('yihui/highr') | |
install_github('yihui/evaluate') | |
install_github('ramnathv/rCharts') | |
install_github('ramnathv/rNVD3', force = TRUE) | |
install_github('ramnathv/slidify') | |
install_github('ramnathv/slidifyLibraries') | |
install_github('ramnathv/rNotebook') | |
install_github('oscarperpinan/rastervis') | |
install_github('oscarperpinan/spacetime-vis') | |
install_github('nachocab/clickme') | |
install_github('ncarchedi/swirl') | |
install_github('trestletech/shinyTable') | |
install_github('trestletech/shinyAce') | |
install_github('IlyaKipnis/IKTrading') | |
install_github('ropensci/RSelenium') | |
install_github('ropensci/plotly') | |
install_github('ropensci/git2r') | |
install_github("renkun-ken/rlist") | |
install_github("cran/SparseM") | |
install_github("cran/quantreg") | |
install_github('dmbates/NISTnls') | |
install_github('yrosseel/lavaan') | |
install.packages("quantstrat", repos="http://R-Forge.R-project.org") | |
install.packages("foreach") | |
install_github("cran/BLCOP") | |
install_github("yanyachen/FinCovRegularization") | |
install_github('quandl/R-package') | |
install_github(c("ramnathv/htmlwidgets", "rstudio/dygraphs")) | |
install_github("thertrader/fidlr") | |
install_github("robjhyndman/hts") | |
# | |
depends <- c("MASS","car","foreign","ggplot2","plyr","lmtest","reshape2","scales","quantreg") | |
for (i in 1:length(depends)) { | |
if ((depends[i] %in% rownames(installed.packages()))==FALSE) { | |
cat(paste0("Installing missing package \"", depends[i], "\"...\n")) | |
install.packages(depends[i]) | |
} | |
else { | |
cat(paste0("Package \"", depends[i], "\" already installed...\n")) | |
} | |
} | |
# | |
install.packages("PairTrading", repos="http://R-Forge.R-project.org") | |
svn checkout svn://scm.r-forge.r-project.org/svnroot/pairtrading/ | |
install.packages("pnl", repos="http://R-Forge.R-project.org") | |
svn checkout svn://svn.r-forge.r-project.org/svnroot/pnl/ | |
svn checkout svn://scm.r-forge.r-project.org/svnroot/nmof/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment