Fast Multi-Page PDF Report Layout on the Graphics Device
Overview
A lightweight, dependency-free engine to build multi-page PDF reports quickly on top of R's built-in graphics device ('pdf'/'cairo_pdf'). Content is placed by a measured flow layout: every text block reports its real width and height via 'strwidth'/'strheight', the vertical cursor advances by measured height, and pages break automatically. This eliminates the text-overlap of dead-reckoned coordinate reports (such as the 'nmw' NONMEM diagnostic reports) and replaces slow '.Rmd'/'knitr'/'LaTeX' pipelines for fixed report generation: no external toolchain is started and the document is written in a single pass. Interactive AcroForm CRFs are out of scope.
Bug fix release.
- Fixed a crash in the flow engine when a block's height equalled the space left on the page to within floating-point error:
split()then reported the whole block as fitting (head = <block>,tail = NULL) and.place_block()went on to measure theNULLtail ("attempt to apply non-function")..place_block()now (a) treats a block as fitting when its height exceeds the remaining space by less than 1e-9 pt, matching the tolerance thesplit()methods already use, and (b) stops cleanly when a split returns no tail, instead of starting a page for it. Affectedblock_para(),block_pre()andblock_table()alike;nmwworked around it. Regression-tested ininst/tinytest/test_flow.R. .block_seq()(used byblock_table()/block_matrix()) now returnstail = NULLrather than an empty sequence block when a split consumes every sub-block, which also removes a spurious trailing blank page.
From NEWS.md in the release
Install
Health
- OK13 OKNow
- OK11 OK2026-08-04
- NOTE9 OK, 1 NOTE2026-08-01
- OK7 OK2026-07-31
Documentation
- Help pages
- 26
- Examples that run
- no examples
- Exported functions with examples
- 0%
- Documented parameters
- 90%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Installing simPDF adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.1.2Latest
- 0.1.12026-07-30
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-07-30
- Total releases
- 2 / 1 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.6.0
- Download size
- 47 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("simPDF")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.