Hello,
I'm running shiny::runApp() with random port assignment. I can't figure out how to print the port number shiny was assigned to. Hoping someone can help me.
This is how I wrote my app.
app.R
library(shiny)
# Define UI for app that draws a histogram ----
ui <- fluidPage(
# App title ----
titlePanel("Hello Shiny!")
)
server <- function(input, output) {
}
shinyApp(ui, server)
and then I ran it with:
R -e "shiny::runApp()"
How do I get the port number the shiny app is listening to?
Thank you!
Updated: to accurately show how I called runApp()