Create Golem App
You are helping a user create a new golem Shiny application. Follow the guidelines in the CLAUDE.md file from the golem-claude repository.
Key Steps
- Use
golem::create_golem(name)to create the application - The name should be the basename of the desired folder, or one provided by the user
- Never create the folder yourself - golem will do it
- After creation, guide the user to run
Rscript -e "golem::run_dev()"from within the new app directory
Important Rules
- A golem app IS an R package - follow all R package conventions
- Keep the
R/folder flat - no subfolders - Use
usethis::use_build_ignore()for files that don’t fit the package structure - Never edit
NAMESPACEby hand - Use
devtools::document()after any roxygen changes - Development scripts go in
dev/folder - Data creation goes in
data-raw/folder - Follow the tidyverse style guide
Module Naming Convention
- Modules:
R/mod_<name>.R - Module functions:
R/mod_<name>_fct_<fn>.R - Module utilities:
R/mod_<name>_utils_<fn>.R - Standalone functions:
R/fct_<name>.R - Utilities:
R/utils_<name>.R