framework docs

Function reference

Every exported function, grouped by what it's for.

Workflow

Setting up and managing the working environment

capture_output()
Capture console output and errors from an expression
configure_global()
Configure Global Framework Settings
env_clear()
Clear R environment
env_summary()
Summarize R environment
gui()
Launch Framework GUI
now()
Get current datetime
scaffold()
Initialize and load the project environment
scratch_capture()
Capture and Save Data to File
scratch_clean()
Clean up the scratch directory by deleting all files
settings()
Get settings value by dot-notation key
settings_read()
Read project settings
settings_write()
Write project settings
setup()
Setup Framework (First-Time Configuration)
standardize_wd()
Standardize Working Directory for Framework Projects
view()
View data in an interactive browser viewer

Data

Reading, writing, and managing data files

data_add()
Add an existing file to the data catalog
data_info()
Get data specification from config
data_list()
List all data entries from config
data_read()
Read data using dot notation path or direct file path
data_save()
Save data using dot notation or file path

Packages

Package management and renv integration

packages_install()
Install packages from configuration
packages_list()
List all packages from configuration
packages_restore()
Restore packages from renv.lock
packages_snapshot()
Snapshot current package library (renv)
packages_status()
Show renv package status
packages_update()
Update packages from configuration
renv_disable()
Disable renv for this project
renv_enable()
Enable renv for this project
renv_enabled()
Check if renv is enabled for this project

Saving Work

Saving figures, tables, reports, and models

result_list()
List saved results from the framework database
save_figure()
Save a figure to the outputs directory
save_model()
Save a model to the outputs directory
save_notebook()
Save a rendered notebook to the outputs directory
save_report()
Save a report to the outputs directory
save_table()
Save a table to the outputs directory

Notebooks & Scripts

Creating notebooks, scripts, and presentations

make_notebook()
Create a Notebook or Script from Stub Template
make_presentation()
Create a Presentation
make_qmd()
Create a Quarto Notebook
make_revealjs()
Create a Reveal.js Presentation
make_rmd()
Create an RMarkdown Notebook
make_script()
Create an R Script from Stub Template
quarto_generate_all()
Generate Quarto Configurations for Project
quarto_regenerate()
Regenerate Quarto Configurations
stubs_list()
List Available Stubs
stubs_path()
Get Path to Stub Templates Directory
stubs_publish()
Publish Stub Templates for Customization

Project Management

Creating and managing projects

new()
Create a New Project (Master Wrapper)
new_course()
Create a Course Project
new_presentation()
Create a Presentation Project
new_project()
Create a New Framework Project
new_project_sensitive()
Create a Sensitive Data Project
project_info()
Display project structure information
project_list()
List all projects in global configuration
status()
Show Framework project status

Publishing

Publishing outputs and reports

publish()
Publishing Functions
publish_data()
Publish data to S3
publish_dir()
Publish a directory to S3
publish_list()
List published files in S3
publish_notebook()
Publish a Quarto notebook to S3
storage_test()
Test storage connection

Git

Git commands and hook management

git_add()
Stage Files for Commit
git_commit()
Commit Staged Changes
git_diff()
Show Changes (Diff)
git_hooks_disable()
Disable Specific Git Hook
git_hooks_enable()
Enable Specific Git Hook
git_hooks_install()
Install Git Pre-commit Hook
git_hooks_list()
List Git Hook Status
git_hooks_uninstall()
Uninstall Git Pre-commit Hook
git_log()
Show Commit Log
git_pull()
Pull from Remote
git_push()
Push to Remote
git_security_audit()
Security audit for Framework projects
git_status()
Show Git Status

Caching

Caching computed values for performance

cache()
Cache a value
cache_flush()
Clear all cached values
cache_forget()
Remove a cached value
cache_get()
Get a cached value
cache_list()
List all cached values
cache_remember()
Remember a value (get from cache or compute and store)

Database

Database connections and queries

db_connect()
Get a database connection
db_drivers_install()
Install database drivers
db_drivers_status()
Check if database drivers are installed
db_execute()
Execute a database statement
db_list()
List all database connections from configuration
db_query()
Get data from a database query
db_transaction()
Execute code within a database transaction
db_with()
Execute code with a managed database connection

AI

AI assistant integration

ai_generate_context()
Generate AI Context File
ai_regenerate_context()
Regenerate Dynamic Sections in AI Context File
ai_skills_update()
Update Framework Skills in a Project
ai_sync_context()
Sync AI Assistant Context Files