#' ---
#' title: "DEPLOY SCRIPT: 03_deploy.R"
#' date: "`r Sys.Date()`"
#' author: Chris Zheng
#' email: chrizheng@vip.sina.com.cn
#' output:
#' html_document:
#' fig_caption: yes
#' number_sections: yes
#' theme: cerulean
#' highlight: pygments
#' ---
#/*
# Building a Prod-Ready, Robust Shiny Application.
#
#
# **README**: each step of the dev files is optional, and you don't have to
# fill every dev scripts before getting started.
#
# * 01_start.R should be filled at start.
#
# * 02_dev.R should be used to keep track of your development during the project.
#
# * 03_deploy.R should be used once you need to deploy your app.
#
# * run_dev.R should be used to run your app in production/debug mode
#
#
######################################
#### CURRENT FILE: DEPLOY SCRIPT #####
######################################
#*/
#' # Test shiny app for deploy
#+ test_app_develop, eval = FALSE
## Run checks ----
## Check the package before sending to prod
devtools::check()
rhub::check_for_cran()
#' # Deploy shiny app
#+ deploy_app, eval = FALSE
## Install local ----
devtools::install()
## RStudio ----
## If you want to deploy on RStudio related platforms
golem::add_rstudioconnect_file()
golem::add_shinyappsio_file()
golem::add_shinyserver_file()
## Docker ----
## If you want to deploy via a generic Dockerfile
golem::add_dockerfile()
## If you want to deploy to ShinyProxy
golem::add_dockerfile_shinyproxy()
## If you want to deploy to Heroku
golem::add_dockerfile_heroku()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.