# deploy/deploy-shinyapps.R
# usethis::use_build_ignore("deploy")
rsconnect::setAccountInfo(
Sys.getenv("SHINYAPPS_ACCOUNT"),
Sys.getenv("SHINYAPPS_TOKEN"),
Sys.getenv("SHINYAPPS_SECRET")
)
# TODO: We currently have copy the file for the deployment to work
file.copy("inst/report/index.Rmd", "index.Rmd", overwrite = TRUE)
# to be added since rsconnect >1
options(rsconnect.packrat = TRUE)
rsconnect::deployApp(
account = "miraisolutions",
appName = "covid19-vaccination-ch",
forceUpdate = TRUE, # to be added since rsconnect >1
quarto = FALSE # to be added since rsconnect >1
)
unlink("index.Rmd")
# rsconnect::deployApp(
# appDir = "inst/report",
# appPrimaryDoc = "inst/report/index.Rmd",
# appName = "covid19-vaccination-ch",
# )
# rsconnect::deployDoc(
# doc = "inst/report/index.Rmd",
# appDir = ".",
# appName = "covid19-vaccination-ch",
# )
# rsconnect::deployApp(
# appDir = ".",
# appFiles = list.files(),
# appPrimaryDoc = "inst/report/index.Rmd",
# appName = "covid19-vaccination-ch"
# )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.