Supplements the 'gtsummary' Package for Pharmaceutical Reporting

Tables summarizing clinical trial results are often complex and require detailed tailoring prior to submission to a health authority. The 'crane' package supplements the functionality of the 'gtsummary' package for creating these often highly bespoke tables in the pharmaceutical industry.


crane

Check🛠 Docs📚 Code Coverage📔

CRANVersion CurrentVersion

The {crane} package provides supplementary functions to the {gtsummary} specifically for trial reporting in the pharmaceutical industry.

Installation

You can install {crane} with the following code.

install.packages("crane")

Install the development version with pak::pak("insightsengineering/crane")

Examples

The package exports a gtsummary theme for reporting at Roche. The theme sets function defaults to meet reporting requirements at Roche, making it simpler programmers to achieve the desired results without setting too many arguments.

The package also exports a wrapper for the gtsummary::tbl_summary() function with defaults more suited to reporting at Roche.

library(crane)
#> Loading required package: gtsummary
theme_gtsummary_roche()
#> Setting theme "Roche"

tbl <- trial |>
  tbl_roche_summary(by = trt, include = c(age, grade), nonmissing = "always")

The package also exports functions for Roche adverse event reporting, functions for shift tables, and others.

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("crane")

0.3.2 by Joe Zhu, 4 months ago


https://github.com/insightsengineering/crane, https://insightsengineering.github.io/crane/


Report a bug at https://github.com/insightsengineering/crane/issues


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


Authors: Daniel D. Sjoberg [aut] (ORCID: , note: Original creator of the package) , Emily de la Rua [aut] , Davide Garolini [aut] , Chi Zhang [aut] , Abinaya Yogasekaram [ctb] (ORCID: , Joe Zhu [cre] , Jan Szczypiński [aut] , F. Hoffmann-La Roche AG [cph, fnd]


Documentation:   PDF Manual  


Apache License 2.0 license


Imports broom, cards, cardx, cli, cowplot, dplyr, flextable, ggplot2, glue, gt, labeling, lifecycle, rlang, scales, scales.1, survival, tibble, tidyr

Depends on gtsummary

Suggests broom.helpers, coin, emmeans, labelled, magick, mmrm, parameters, pharmaverseadam, testthat, tidyselect, withr, yaml


Depended on by cardinalfda.

Suggested by autoslider.core.


See at CRAN