I want to use the source
function with a R Shiny app.
I tried something similar as the following code but it does not lauch the Shiny app
# This code runs but does not launch my Shiny app
source("path/to/my/Shiny_app.R")
# Or
source("path/to/my/Shiny_app.R", local = T)
Something I am missing ?
CodePudding user response:
Use function runApp
from shiny
package to launch app:
shiny::runApp(appDir = "path/to/my/Shiny_app.R")