Workflow
configure_global()
Configure Global Framework Settings
Unified function for reading and writing global Framework settings to ~/.frameworkrc.json. This function provides a single source of truth for global configuration, used by both the CLI and GUI interfaces.
Usage
configure_global(settings = NULL, validate = TRUE)
Arguments
- settings
- List. Settings to update (partial updates supported)
- validate
- Logical. Validate settings before saving (default: TRUE)
Value
Invisibly returns updated global configuration
Details
Global Settings Structure
author- Author information (name, email, affiliation)defaults- Project defaultsproject_type- Default project type ("project", "presentation", "course")notebook_format- Default notebook format ("quarto", "rmarkdown")ide- IDE preference ("vscode", "rstudio", "both", "none")use_git- Initialize git repositories by defaultuse_renv- Enable renv by defaultseed- Default random seedseed_on_scaffold- Set seed during scaffold()ai_support- Enable AI assistant supportai_assistants- List of AI assistants ("claude", "agents", etc.)ai_canonical_file- Canonical AI instruction filepackages- Default package listdirectories- Default directory structuregit_hooks- Git hook preferencesprojects- Registered projects listactive_project- Currently active project path
Examples
if (FALSE) {
# Update author information
configure_global(settings = list(
author = list(
name = "Jane Doe",
email = "jane@example.com"
)
))
# Update default project type
configure_global(settings = list(
defaults = list(
project_type = "presentation"
)
))
# Get current settings (read-only)
current <- configure_global()
}