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

326

Version

0.2.1

License

BSD_2_clause + file LICENSE

Maintainer

John Harrold

Last Published

June 12th, 2025

Functions in formods (0.2.1)

DW_Server

Data Wrangling Server
DW_add_wrangling_element

Adding Wrangling Element to Current Data View
DW_fetch_state

Fetch Data Wrangling State
DW_fetch_ds

Fetch Module Datasets
FG_append_report

Append Report Elements
FG_Server

Figure Generation Server
DW_fetch_current_view

Fetches Current Data View
DW_init_state

Initialize DW Module State
DW_fetch_code

Fetch Module Code
DW_hasds

Check DW State For Datasets
DW_mk_preload

Make List of Current DW State
DW_new_view

New Data Wrangling View
FG_fetch_code

Fetch Module Code
DW_test_mksession

Populate Session Data for Module Testing
DW_update_checksum

Updates DW Module Checksum
FG_mk_preload

Make List of Current FG State
FG_fetch_state

Fetch Figure Generation State
FG_new_fig

Initialize New Figure
FM_fetch_data_format

Creates Formatting Information for Datasets
FM_fetch_current_mods

Fetches Details About Current Modules
FM_build_comment

Create RStudio Formatted Comments
FG_fetch_current_fig

Fetches Current Figure
FG_init_state

Initialize FG Module State
FM_app_preload

Preload Data Into App
FM_fetch_deps

Fetches Dependency Information
FG_set_current_fig

Sets Current Figure
FM_fetch_mod_state

Fetch the Module State
FM_fetch_app_code

Fetches the Code to Reproduce Analysis
FM_fetch_ds

Fetches Datasets from Modules in the App
FM_add_ui_tooltip

Add Tooltip to UI Element
FG_test_mksession

Populate Session Data for Module Testing
FG_preload

Preload Data for FG Module
FG_update_checksum

Updates FG Module Checksum
FM_pretty_sort

Centralized Sorting Function
FM_fetch_user_files_path

Fetches the Path to the User Files
DW_preload

Preload Data for DW Module
FM_proc_include

Sets Message in State from UI Processing
FM_set_app_state

Set the App State
FM_message

Show Message to User
FM_le

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

Run Try/Catch and Process Results
FM_mk_app_preload

Preload Data Into App
UD_Server

Data Upload Server
FM_init_state

Initialize a formods State Object
FM_generate_report

Generate Report
DW_set_current_view

Sets Current Data View
FM_notify

Shiny Notification
FM_mk_error_fig

Generates `ggplot` Object with Error Message
UD_attach_ds

Attach Data Set to UD State
UD_ds_read

Generate Code and Load DS
FM_set_mod_state

Set the Module State
FG_build

Evaluates Figure Generation Code
FG_extract_page

Extracts Specific Page from Paginated Figure
FM_fetch_app_info

Fetches Informaiton About the App
FM_fetch_app_state

Fetches the App State
FM_fetch_mdl

Fetches Models from Modules in the App
FM_set_notification

Shiny Notification
FM_reset_app

Resets the App State
FM_fetch_log_path

Fetches the Path to the Log File
FM_resume_screen

Stops Modal Screen Pause
UD_mk_preload

Make List of Current ASM State
UD_preload

Preload Data for UD Module
is_installed

Determines if a Package is Installed
dw_eval_element

Evaluates Data Wrangling Generated Code
is_shiny

Determine if Object is Shiny Session Object
UD_init_state

Initialize UD Module State
UD_fetch_state

Fetch Upload Data State
formods_check

Checks `formods` Dependencies
dwrs_builder

Builds a Data Wrangling R Statement From ui Elements:
has_changed

Depreciated: Detect if a UI element has changed
fetch_package_version

Fetches the Current Version of Pacakge
formods

formods: Shiny modules for common tasks.
FM_set_ui_msg

Sets Message in State from UI Processing
UD_test_mksession

Populate Session Data for Module Testing
FM_pause_screen

Starts Modal Screen Pause
autocast

Automatically Cast UI Input Variable
UD_fetch_ds

Fetch Module Datasets
UD_fetch_code

Fetch Module Code
fers_builder

Builds a Figure Element R Statement From UI Elements:
has_updated

Detect if a UI element has updated
fetch_hold

Fetches the Hold Status UI Element Supplied
linspace

Implementation of the linspace Function from Matlab
set_hold

Sets Hold on One or All UI Elements
new_module_template

Makes Template Files for formods New Module
run_formods

Run the 'formods' Shiny App
render_str

Evaluate R Code in String
unfactor

Remove Factor From Object
remove_hold

Removes Hold on UI Element
use_formods

Create Module Templates in a Package Repository
icon_link

Creates Icon Link
ASM_preload

Preload Data for ASM Module
ASM_mk_preload

Make List of Current ASM State
ASM_onload

Updates ASM After State Load
ASM_fetch_dlfn

Fetch Download File Name
ASM_load_state

Write State to File for Saving
ASM_fetch_state

Fetch State Manager State
ASM_init_state

Initialize ASM Module State
ASM_read_app_state

Read App State From Yaml Files
ASM_fetch_code

Fetch Module Code
ASM_Server

Save State Server
ASM_save_state

Write State to File for Saving
DW_append_report

Append Report Elements
DW_attach_ds

Attach Data Set to DW State
ASM_test_mksession

Populate Session Data for Module Testing