Learn R Programming

formods

Shiny apps can often make use of the same key elements, formods provides modules for common tasks (data upload, wrangling data, figure generation and saving the app state). These modules can react and interact as well as generate code to create reproducible analyses. {formods} also defines a framework for creating reactive modules. The vignettes outline how to use these modules as well as how to create other modules within this framework.

Installation

Copy Link

Version

Install

install.packages('formods')

Monthly Downloads

221

Version

0.2.2

License

BSD_2_clause + file LICENSE

Maintainer

John Harrold

Last Published

October 29th, 2025

Functions in formods (0.2.2)

DW_fetch_ds

Fetch Module Datasets
ASM_test_mksession

Populate Session Data for Module Testing
ASM_save_state

Write State to File for Saving
DW_append_report

Append Report Elements
DW_fetch_current_view

Fetches Current Data View
DW_Server

Data Wrangling Server
DW_attach_ds

Attach Data Set to DW State
DW_test_mksession

Populate Session Data for Module Testing
DW_preload

Preload Data for DW Module
DW_init_state

Initialize DW Module State
DW_update_checksum

Updates DW Module Checksum
FG_append_report

Append Report Elements
DW_mk_preload

Make List of Current DW State
DW_set_current_view

Sets Current Data View
DW_new_view

New Data Wrangling View
FG_Server

Figure Generation Server
DW_hasds

Check DW State For Datasets
FG_build

Evaluates Figure Generation Code
FG_extract_page

Extracts Specific Page from Paginated Figure
FG_preload

Preload Data for FG Module
FG_init_state

Initialize FG Module State
FG_set_current_fig

Sets Current Figure
FG_mk_preload

Make List of Current FG State
FG_new_fig

Initialize New Figure
FG_fetch_state

Fetch Figure Generation State
FM_build_comment

Create RStudio Formatted Comments
FM_app_preload

Preload Data Into App
FM_fetch_current_mods

Fetches Details About Current Modules
FM_add_ui_tooltip

Add Tooltip to UI Element
FG_test_mksession

Populate Session Data for Module Testing
FG_update_checksum

Updates FG Module Checksum
FG_fetch_code

Fetch Module Code
FM_fetch_app_code

Fetches the Code to Reproduce Analysis
FG_fetch_current_fig

Fetches Current Figure
FM_fetch_data_format

Creates Formatting Information for Datasets
FM_fetch_deps

Fetches Dependency Information
FM_message

Show Message to User
FM_fetch_app_info

Fetches Informaiton About the App
FM_le

Adds Message to Log File and Displays it to the Console
FM_fetch_app_state

Fetches the App State
FM_fetch_mdl

Fetches Models from Modules in the App
FM_fetch_log_path

Fetches the Path to the Log File
FM_init_state

Initialize a formods State Object
FM_generate_report

Generate Report
FM_fetch_ds

Fetches Datasets from Modules in the App
FM_set_mod_state

Set the Module State
FM_set_app_state

Set the App State
FM_fetch_user_files_path

Fetches the Path to the User Files
FM_resume_screen

Stops Modal Screen Pause
FM_pretty_sort

Centralized Sorting Function
FM_fetch_mod_state

Fetch the Module State
FM_pause_screen

Starts Modal Screen Pause
FM_reset_app

Resets the App State
FM_notify

Shiny Notification
FM_proc_include

Sets Message in State from UI Processing
FM_mk_app_preload

Preload Data Into App
FM_mk_error_fig

Generates `ggplot` Object with Error Message
UD_fetch_code

Fetch Module Code
UD_Server

Data Upload Server
UD_fetch_state

Fetch Upload Data State
FM_tc

Run Try/Catch and Process Results
UD_init_state

Initialize UD Module State
FM_set_ui_msg

Sets Message in State from UI Processing
UD_ds_read

Generate Code and Load DS
UD_fetch_ds

Fetch Module Datasets
FM_set_notification

Shiny Notification
UD_attach_ds

Attach Data Set to UD State
dw_eval_element

Evaluates Data Wrangling Generated Code
dwrs_builder

Builds a Data Wrangling R Statement From ui Elements:
fetch_package_version

Fetches the Current Version of Pacakge
UD_mk_preload

Make List of Current ASM State
UD_preload

Preload Data for UD Module
fers_builder

Builds a Figure Element R Statement From UI Elements:
UD_test_mksession

Populate Session Data for Module Testing
autocast

Automatically Cast UI Input Variable
fetch_hold

Fetches the Hold Status UI Element Supplied
formods

formods: Shiny modules for common tasks.
remove_hold

Removes Hold on UI Element
is_shiny

Determine if Object is Shiny Session Object
has_updated

Detect if a UI element has updated
is_installed

Determines if a Package is Installed
icon_link

Creates Icon Link
has_changed

Depreciated: Detect if a UI element has changed
linspace

Implementation of the linspace Function from Matlab
render_str

Evaluate R Code in String
formods_check

Checks `formods` Dependencies
new_module_template

Makes Template Files for formods New Module
run_formods

Run the 'formods' Shiny App
use_formods

Create Module Templates in a Package Repository
unfactor

Remove Factor From Object
set_hold

Sets Hold on One or All UI Elements
ASM_fetch_code

Fetch Module Code
ASM_fetch_state

Fetch State Manager State
ASM_fetch_dlfn

Fetch Download File Name
ASM_preload

Preload Data for ASM Module
ASM_onload

Updates ASM After State Load
ASM_init_state

Initialize ASM Module State
ASM_Server

Save State Server
ASM_mk_preload

Make List of Current ASM State
ASM_read_app_state

Read App State From Yaml Files
ASM_load_state

Write State to File for Saving
DW_add_wrangling_element

Adding Wrangling Element to Current Data View
DW_fetch_code

Fetch Module Code
DW_fetch_state

Fetch Data Wrangling State