Reputation: 335
I want to deploy shinyApp in local server. Is there any such code by which I can deploy shinyApps in local server.
When I run shinyApp locally on desktop, it runs by IP: http://XXX.0.0.1:XXXX/ Every time I run the shinyApp it runs with different port number. I want to configure IP address at local server for shinyApp. I don't know how to do it. Is there any syntax/function like "rsconnect" to deploy shinyApp in local server? We know how to connect to MySQL. Similarly any such code by which we can connect to local server IP? code for connecting to MySQL:
library(RMySQL)
mydb = dbConnect(MySQL(), user='######', password='#######', dbname='#####',
host='###.##.###.###', port=####)
Any help would be greatly appreciated.
Upvotes: 0
Views: 1342
Reputation: 33
Set the default values you want to initialize in (~/.Rprofile) under user directory
options(shiny.port = 9999)
options(shiny.host= xx.xx.xx.xx)
Upvotes: 1