10.4 Submodules and utility functions
Split your codebase into smaller pieces
golem::add_fct("helpers", module = NULL)addsR/fct_helpers.ROrganisation:
R/utils_ABC.R- small functions used throughout the app (Purpose-centered; eg, formatting)R/fct_DEF.R- larger functions that aren’t module-specific (Topic-centered; eg, db access)R/mod_XXX_[fct|utils]_YYY.R- functions relevant to a specific module
golem::add_module(name = "xxx", fct = "yyy", utils = "zzz")