Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/sh
### Make a directory to work from
mkdir -p ~/dev/R-libs
cd ~/dev/R-libs
### Check out source trees
svn co svn://svn.r-forge.r-project.org/svnroot/zoo/pkg/zoo
svn co svn://svn.r-forge.r-project.org/svnroot/xts/pkg/xts
svn co svn://svn.r-forge.r-project.org/svnroot/ttr/pkg ttr
svn co svn://svn.r-forge.r-project.org/svnroot/quantmod/pkg quantmod
svn co svn://svn.r-forge.r-project.org/svnroot/blotter/pkg/FinancialInstrument
svn co svn://svn.r-forge.r-project.org/svnroot/blotter/pkg/blotter
svn co svn://svn.r-forge.r-project.org/svnroot/blotter/pkg/quantstrat
svn co svn://svn.r-forge.r-project.org/svnroot/returnanalytics/pkg/PerformanceAnalytics
svn co svn://svn.r-forge.r-project.org/svnroot/returnanalytics/pkg/FactorAnalytics
svn co svn://svn.r-forge.r-project.org/svnroot/returnanalytics/pkg/PortfolioAnalytics
### Install zoo
cd zoo && R CMD INSTALL . && cd ..
### Install xts
cd xts && R CMD INSTALL . && cd ..
### Install ttr
cd ttr && R CMD INSTALL . && cd ..
### Install Defaults (prerequisite for quantmod) from CRAN
Rscript -e 'install.packages("Defaults", repos=getCRANmirrors(local=T)$URL[70])'
### Install quantmod
cd quantmod && R CMD INSTALL . && cd ..
### Install FinancialInstrument
cd FinancialInstrument && R CMD INSTALL . && cd ..
### Install blotter
cd blotter && R CMD INSTALL . && cd ..
### Install quantstrat
cd quantstrat && R CMD INSTALL . && cd ..
### Install PerformanceAnalytics
cd PerformanceAnalytics && R CMD INSTALL . && cd ..
### Install FactorAnalytics
cd FactorAnalytics && R CMD INSTALL . && cd ..
### Install PortfolioAnalytics
cd PortfolioAnalytics && R CMD INSTALL . && cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.