'shiny' App Companion to the 'tfrmt' Package

Provides an interactive interface to the 'tfrmt' package. Users can import, modify, and export tables and templates with little to no code.


{tfrmtbuilder}tfrmt logo

R-CMD-check status:experimental CRANstatus

The {tfrmt} package provides a language for defining display-related metadata, which can then be used to automate and easily update output formats. {tfrmtbuilder} serves as an interface to the package, allowing users to quickly and easily modify existing or new table templates.

Supported workflows

Like {tfrmt}, {tfrmtbuilder} can be used to support a variety of workflows, including the following:

  • Creating tables from scratch
  • Create tables based on a template
  • Modifying an existing table

Additionally, {tfrmtbuilder} supports tables created during study planning (mock tables) or later on after the analysis is complete.

App Features and Workflow

  • Mock vs. non-mock toggle

    • At the top of the app, use the toggle to specify whether you are generating a mock (no data values) or a table with data values.
  • Initialize tab

    • Load an existing {tfrmt} (JSON) or start fresh
    • Define your data source:
      • Auto [mock only]: Use auto-generated mock data
      • Upload: Upload an existing dataset (most file formats)
        • Note: If in 'mock' mode, this will serve as a shell with the numeric data value column ignored
      • Example [mock only]: Use a pre-loaded example dataset
  • Edit tab

    • Select ARD column mappings
    • Format table via the 'plans' and other functionality
    • View the table as you modify
  • Export tab

    • Download {tfrmt} metadata (JSON)
    • Download {tfrmt} table (HTML, PNG)

Usage

{tfrmtbuilder} can be installed and used with the following code:

# development version
devtools::install_github("GSK-Biostatistics/tfrmtbuilder")

# from CRAN
install.packages("tfrmtbuilder")

# Load app
library(tfrmtbuilder)
tfrmtbuilder()

Useful Links

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tfrmtbuilder")

0.1.1 by Becca Krouse, 8 months ago


https://gsk-biostatistics.github.io/tfrmtbuilder/, https://github.com/GSK-Biostatistics/tfrmtbuilder


Report a bug at https://github.com/GSK-Biostatistics/tfrmtbuilder/issues


Browse source code at https://github.com/cran/tfrmtbuilder


Authors: Becca Krouse [aut, cre] , Christina Fillmore [aut] (ORCID: , Karima Ahmad [aut] , Ellis Hughes [aut] , GlaxoSmithKline Research & Development Limited [cph, fnd]


Documentation:   PDF Manual  


Apache License (>= 2) license


Imports tfrmt, shiny, shinyjs, dplyr, stringr, purrr, DT, gt, rlang, sortable, bslib, shinyWidgets, rio, shinycssloaders, webshot2, shinyAce, shinyFeedback, fontawesome

Suggests here, pkgload, rprojroot, shinytest2, testthat


See at CRAN