8.1 Install custom packages

Since blotter and quanstrat are still under development, they are not yet available at CRAN. We need to install the two package from github. We need to install devtools package first.

Then we use the function install_github to download the packages, and then we load them into the system.

install.packages("devtools")
library(devtools)
# Install from github directly
install_github("braverock/blotter")
install_github("braverock/quanstrat")
library(blotter)
library(quantstrat)

IF there is an error during installation process, try again after installing the latest R and update all packages.