I have a shiny app running in the background with this command
library(rstudioapi) #Run shiny app in the background jobRunScript("Tree/working/shiny-ru