Closed mslynch closed 1 year ago
This works for me manually now:
# install github version of rsconnect
install.packages("remotes")
remotes::install_github("rstudio/rsconnect")
# TODO: create your own shiny app and change the directory name here
app_dir <- "20230707_1_redeploy_shiny_R_430_github_rsconnect"
app_name <- app_dir
# TODO: fill in your own account, token, secret details
shinyapps_account <- "..."
shinyapps_server <- "shinyapps.io"
shinyapps_token <- "..."
shinyapps_secret <- "..."
# setup a shinyapps.io account to publish to
rsconnect::setAccountInfo(
name = shinyapps_account,
token = shinyapps_token,
secret = shinyapps_secret,
server = shinyapps_server
)
# first deploy
rsconnect::deployApp(
app_dir,
appName = app_name,
account = shinyapps_account,
server = shinyapps_server
)
# second deploy
rsconnect::deployApp(
app_dir,
appName = app_name,
account = shinyapps_account,
server = shinyapps_server
)
Happens on
main
only.