forked from ericscheier/systemtradeR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libraries.R
29 lines (24 loc) · 889 Bytes
/
libraries.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
libraries <- c("xts",
"lubridate",
"TTR",
"PerformanceAnalytics",
"PortfolioAnalytics",
"DEoptim",
"doParallel",
"httr",
"plyr",
"digest",
"jsonlite",
"RCurl",
"stringr",
"slackr",
"httr",
"quantstrat",
"ROI",
"lattice"
)
library.repos <- c("http://cran.us.r-project.org", "http://R-Forge.R-project.org")
library.loaded <- unlist(lapply(libraries, require, character.only = TRUE))
if(any(!library.loaded)){lapply(libraries[!library.loaded], massInstall, library.repos=library.repos)}
# install.packages("quantstrat", repos="http://R-Forge.R-project.org"",
# install_github("IlyaKipnis/IKTrading"", needs devtools