start new:
tmux
start new with session name:
tmux new -s myname
| if (!require(quantmod)) { | |
| stop("This app requires the quantmod package. To install it, run 'install.packages(\"quantmod\")'.\n") | |
| } | |
| # Download data for a stock if needed, and return the data | |
| require_symbol <- function(symbol, envir = parent.frame()) { | |
| if (is.null(envir[[symbol]])) { | |
| envir[[symbol]] <- getSymbols(symbol, auto.assign = FALSE) | |
| } |