Examples
Curated demo workflows running on blockr.cloud. Open any example to explore it interactively.
Getting Started
Pharma

Clinical Explorer
AI-enabled exploration of an ADaM trial: demographics, adverse events, lab values, vitals, and patient profile.
Open in Playground →
Admiral SDTM → ADSL
SDTM DM to ADSL derivation pipeline using admiral blocks (blockr.admiral).
Open in Playground →Insurance

Life UWR Workbench
Life-insurance underwriting workbench spanning Inputs, Claims, Underwrite, Analysis, and Actuarial views over an employees census, claims history, and bundled actuarial tables.
Open in Playground →
Actuarial Workbench
Property-insurance actuarial workbench with portfolio inputs, country / base-rate / experience pricing grids, premium components and run-vs-run comparison over the bundled property portfolio.
Open in Playground →
Treaty Pricer
Layered excess-of-loss treaty pricer: an editable treaty tower drives a piecewise-Pareto severity fit, loss simulation, and a per-layer premium build-up. Edit a layer and the KPIs, quote chart, and build-up waterfall all recompute.
Open in Playground →Finance

Portfolio Advisor
Portfolio optimization with investor profiling and dashboard (blockr.portfolio).
Open in Playground →
Share Explorer
Interactive stock ticker explorer with candlestick charts (blockr.portfolio).
Open in Playground →Statistics

Tidymodels ML
Machine learning workflows powered by tidymodels: preprocessing, model fitting, and evaluation.
Open in Playground →
Stats 101 (Penguins)
Teaching-grade statistical workflow on palmerpenguins: descriptives, correlation, lm, t-test, normality.
Open in Playground →Run an example locally
The demos above run on blockr.cloud. To run one in your own R session, follow the setup below.
Clinical Explorer
First install blockr as described on the Install page. Then add the extra packages:
pak::pak("BristolMyersSquibb/blockr.viz") # drilldown chart/table, KPIs, summary tables
pak::pak("BristolMyersSquibb/blockr.dm") # multi-table / ADaM data-model handling
pak::pak("BristolMyersSquibb/blockr.session") # save, restore, share board state
pak::pak("BristolMyersSquibb/blockr.pharma") # patient profile, swim-lane plotLaunch the demo:
source(system.file("examples/clinical-explorer.R", package = "blockr.pharma"))This loads the ADaM tables from pharmaverseadam and the same blocks as the live demo: cross-filter, drilldown chart and table, patient profile, swim-lane plot. Open inst/examples/clinical-explorer.R on GitHub to see exactly what the script does.
Treaty Pricer
A simulation-based pricer for a layered excess-of-loss reinsurance treaty. One editable treaty tower drives a piecewise-Pareto severity fit, loss simulation, layer structuring, and a premium build-up. Edit a layer and the KPIs, the per-layer quote chart, and the build-up waterfall all recompute.
First install blockr as described on the Install page. Then add the extra packages:
pak::pak("BristolMyersSquibb/blockr.viz") # tiles, KPIs, charts, tables, drilldown
pak::pak("BristolMyersSquibb/blockr.dm") # relational / multi-table data model
pak::pak("BristolMyersSquibb/blockr.session") # save, restore, share board state
pak::pak("BristolMyersSquibb/blockr.code") # show / export the generated R code
pak::pak("cynkra/blockr.input") # editable data grids (the treaty tower)
pak::pak("cynkra/blockr.extra") # function blocks (Pareto fit, per-claim layering)
pak::pak("cynkra/blockr.insurance") # the treaty tower data + this example
install.packages("Pareto") # piecewise-Pareto severity fit + loss simulationLaunch the demo:
source(system.file("examples/treaty-pricer.R", package = "blockr.insurance"))This loads the treaty tower bundled in blockr.insurance and the same blocks as the live demo: the editable tower, Pareto fit and loss simulation, the per-layer quote chart and premium build-up waterfall, the layer-detail drilldown, and a challenger-vs-base comparison. Open inst/examples/treaty-pricer.R on GitHub to see exactly what the script does.
