Repository navigation
How to set default port number for app? #449
Answered
by
kamilzyla
dereckmezquita
asked this question in
Q&A
|
I was using this: shiny::shinyApp(ui, server,
options = list(
port = 3003,
launch.browser = TRUE
)
)How can I configure the default port number in |
Answered by
kamilzyla
Apr 17, 2023
Replies: 1 comment 1 reply
|
Hi @dereckdemezquita! Thanks for using Rhino and for asking 🙂 Two approaches come to my mind: Set options in
|
1 reply
Answer selected by
PawanRamaMali
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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…