# Set options here
options(
shiny.launch.browser = TRUE,
scipen = 9999,
warn = -1,
verbose = FALSE,
golem.app.prod = FALSE
) # TRUE = production mode, FALSE = development mode
# Detach all loaded packages and clean your environment
golem::detach_all_attached()
# rm(list=ls(all.names = TRUE))
rmarkdown::render("intro.Rmd",
output_format = "github_document", # -----
output_file = "intro.md", output_dir = "inst/app/www",
params = list(
actor_id = "esch",
data_date = Sys.Date(),
sha = system("git rev-parse --short HEAD",
intern = TRUE
)
)
)
rmarkdown::render("notes.Rmd",
output_format = "pdf_document", # -----
output_file = "notes.pdf", output_dir = "inst/app/www",
params = list(
actor_id = "esch",
data_date = Sys.Date(),
sha = system("git rev-parse --short HEAD",
intern = TRUE
)
)
)
# Document and reload your package
golem::document_and_reload()
# Run the application
run_app()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.