mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Add host parameter
This commit is contained in:
parent
92b5e08dc1
commit
6aefa55eb9
2 changed files with 6 additions and 3 deletions
5
R/app.R
5
R/app.R
|
|
@ -1,8 +1,9 @@
|
|||
#' Run the application server.
|
||||
#'
|
||||
#' @param host The hostname to serve the application on.
|
||||
#' @param port The port to serve the application on.
|
||||
#'
|
||||
#' @export
|
||||
run_app <- function(port = 3464) {
|
||||
runApp(shinyApp(ui, server), port = port)
|
||||
run_app <- function(host = "127.0.0.1", port = 3464) {
|
||||
runApp(shinyApp(ui, server), host = host, port = port)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue