#------------------------------- Shiny Update
library(rsconnect)
library(data.table)
library(xts)
adj.or.not.vec <- c(TRUE,FALSE)
#--------------- pair case
for(adj.or.not in adj.or.not.vec){
setwd(shiny.data.dir)
saveRDS(adj.or.not,"adj.or.not.RDS")
setwd(shiny.pairs.dir)
source("Shiny.Main.R")
setwd(shiny.pairs.dir)
if(adj.or.not==TRUE){deployApp(appName = "traded_pairs",appTitle = "My Application")
}else{
deployApp(appName = "traded_pairs_raw",appTitle = "My Application")
}
}
Hi, the attached code runs well in RStudio, but when executed by a 'BAT' file with the following code, it fails to run.
@echo off
"C:\Program Files\R\R-3.3.3\bin\R.exe" CMD BATCH --vanilla --slave "Y:\Archived Shared Drive\Ted Codes\Equities.Pairs.Trading.System\main.2.R"
I update my Shiny app on a daily basis as I process updated prices coming from the data source, and the input stocks we are interested in can change on a daily basis.
Any suggestions or advice are appreciated.
Thanks.