← Back to all sparks
C

clinify

ANALYTICS
Velocity2.5

R package clinify by atorus-research — release notes from GitHub.

clinify is closing the gap between flextable defaults and regulatory table specs.

clinical trialsregulatory reportingtable formattingflextabler package
Current state
clinify shapes clinical trial tables into the Word deliverables regulatory submissions require, wrapping flextable and officer. Version 0.4.0 is on CRAN and is almost entirely typographic control: spanner rules that follow the header instead of hard-coded column numbers, header padding named for where the space actually sits, and explicit row pitch. The structural release was 0.3.0, which introduced document objects and broke three APIs to get there.
Where it's heading
The package is working through the places where flextable's defaults and a statistical reporting spec disagree, and the notes are unusually explicit about why each default is wrong — a cell's bottom border draws below its bottom padding, so space under a header moves the rule rather than opening a gap beneath it; flextable leaves rows at a nominal quarter inch when the spec names an exact pitch. Each addition is built to survive an organisation's own clinify_table_default() rather than assuming clinify's styling runs last.
Prediction
Header, spanner and row-pitch control all landed together, so the next gap in the same series is title and footnote geometry — the remaining page furniture that 0.3.0's two-part split left roughly specified.

Recent moves

  1. 15d ago

    Spanner rules, header padding and exact row pitch

    A typography release: clin_spanner_rule() draws the rule under a spanner across only the columns it covers and follows layout changes instead of taking column numbers, clin_header_pad() splits header spacing into above, below and rule_to_body, and clin_row_height() sets an exact body pitch in place of flextable's nominal quarter inch. clin_column_headers() also gains merge control so a header row that legitimately repeats a label keeps those cells separate.

    View source ↗
  2. 1y ago

    Document objects: clindoc() and multi-table output

    ⚡ SPARK

    The release where clinify moved from formatting a table to composing a document — clindoc() objects accepting multiple tables, auto-pagination through Word's keep_with_next, dedicated footnote pages and automatic page numbers. Three breaking changes came with it, including renaming write_clintable() to write_clindoc().

    View source ↗