Structure and formatting requirements for clinical trial table and listing outputs vary between pharmaceutical companies. 'junco' provides additional tooling for use alongside the 'rtables', 'rlistings' and 'tern' packages when creating table and listing outputs. While motivated by the specifics of Johnson and Johnson Clinical and Statistical Programming's table and listing shells, 'junco' provides functionality that is general and reusable. Major features include a) alternative and extended statistical analyses beyond what 'tern' supports for use in standard safety and efficacy tables, b) a robust production-grade Rich Text Format (RTF) and DOCX exporter for tables, listings and graphs, c) structural support for spanning column headers and risk difference columns in tables, and d) robust font-aware automatic column width algorithms for both listings and tables.

The junco R package contains analysis functions to create tables and listings used for clinical trial reporting. It complements the tern package by providing additional statistical analysis capabilities.
The package provides a range of functionality, such as:
Either you can install the stable CRAN version
install.packages("junco") #CRAN Release
Or you can install the development version from GitHub:
require('remotes')
remotes::install_github("johnsonandjohnson/junco", ref = "dev") #for the rolling dev release
To understand how to use this package, please refer to the vignettes (also available on the pkgdown site). You can list them locally with:
browseVignettes(package = "junco")
Key vignettes and what they cover:
browseVignettes(package = "junco")
Key vignettes and what they cover:
Getting started with junco — overview and basic workflow
Table and listing customizations — controlling layouts and styles
Auto column widths — making table columns fit content automatically
Explore a curated catalog of Tables, Listings, and Graphs (TLGs) generated with junco and companion tooling:
What you’ll find there:
Tip: Use the catalog alongside the vignettes above and the function reference to quickly identify the right helper for your analysis, then adapt the showcased code to your study’s data and conventions.