#' @title
#' Use Golem Utilities
#'
#' @description
#' This adds a slightly more succinct version of the golem template so you
#' can keep the `R/` directory neat and clean.
#'
#' @export
dev_use_golem <- function(envir = parent.frame()) {
usethis::use_package("shiny")
usethis::use_package("golem")
dev_copy_template(
template = "app.R",
destination = "R/app.R",
overwrite = FALSE,
skip = TRUE,
envir = envir
)
dev_use_utils("golem")
}
#' @describeIn dev_use_golem Clean up the files associated with golem
#' @export
dev_use_golem_clean <- function() {
file.remove("R/app_config.R")
file.remove("R/app_ui.R")
file.remove("R/app_server.R")
file.remove("R/run_app.R")
file.remove("dev/01_start.R")
file.remove("dev/02_dev.R")
file.remove("dev/03_deploy.R")
file.remove("dev/run_dev.R")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.