How to set default port number for app? #449
-
|
I was using this: shiny::shinyApp(ui, server,
options = list(
port = 3003,
launch.browser = TRUE
)
)How can I configure the default port number in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @dereckdemezquita! Thanks for using Rhino and for asking 🙂 Two approaches come to my mind: Set options in
|
Beta Was this translation helpful? Give feedback.
Hi @dereckdemezquita! Thanks for using Rhino and for asking 🙂 Two approaches come to my mind:
Set options in
.RprofileAdd these lines to the
.Rprofilefile in your project:After restarting your R session, you can launch the app as usual by running
shiny::runApp()in the R console or via "Run app" button (on theapp.Rfile) in RStudio.Create a launch script
Create a
run.Rscript with the following content:You can then launch the app by sourcing this script in your R console (
source("run.R")). If you're on Linux / macOS, you can also make the script executable:#!/u…