I find the golem package confusing. As a way to deal with the scope of the package I wanted to create a simple working app and come up with a development cycle for myself to follow. I will document these steps here.
golem::create_golem(<APP_NAME>)
01_start.R
file.02_dev.R
attachment::att_amend_desc()
into run_dev.R
so all
imports are added to DESCRIPTIONgolem::add_module(name = <MOD_NAME>, with_test = F)
golem::add_utils("helpers", module = <MOD_NAME>)
golem::use_utils_ui()
golem::add_js_file("script")
golem::add_js_handler("handlers")
inst/app/www/handlers.js
shows an example.sass
not .scss
golem::add_sass_file(<STYLES>)
run_dev.R
dev/run_dev.R
R/app_ui.R
and R/app_server.R
run_app
dev/03_deploy.R
devtools::check()
You’ll still need to render README.Rmd
regularly, to keep README.md
up-to-date. devtools::build_readme()
is handy for this. You could also
use GitHub Actions to re-render README.Rmd
every time you push. An
example workflow can be found here:
https://github.com/r-lib/actions/tree/v1/examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.