knitr::opts_chunk$set(echo = TRUE) # R-build *.R to * Rmd for including in following sections child_r_files <- c("01_start.R", "02_dev.R", "03_deploy.R", "run_dev.R") for (child_r_file in child_r_files) { res <- knitr::spin(child_r_file, knit = FALSE) cat(res, sep = "\n") } # Child rmd files needs included into final file child_rmd_files <- fs::path_ext_set(child_r_files, ext = "Rmd")
The cheat sheet is used as a notes for developer to develop, deploy, and operate an production-grade shiny App.
It was generated from following R scripts files:
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
# include child Rmd files
for (child_rmd in child_rmd_files) { try( unlink(child_rmd) ) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.