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, AE, lab, vitals, patient profile.
Open in Playground →
Admiral SDTM → ADSL
SDTM DM to ADSL with admiral, one derivation step per block.
Open in Playground →Insurance

Life UWR Workbench
Life underwriting: per-coverage expected claims and a price-driver dashboard.
Open in Playground →
Actuarial Workbench
Property pricing: Base and Challenger simulations, compared in a waterfall.
Open in Playground →
Treaty Pricer
Reinsurance pricing: an editable treaty tower drives the loss simulation and premium.
Open in Playground →Public Sector

Is the economy growing, or is it just the season?
Swiss GDP seasonally adjusted in one block, next to SECO's own adjustment.
Open in Playground →
Data Collection Process
A quarterly data collection from eight units, run as a BPMN process.
Open in Playground →Research
Showcase

Full-Stack Assistant
An empty board with the AI assistant: build the whole workflow by chatting.
Open in Playground →
DuckDB Lazy (100M rows)
100M rows of parquet in lazy DuckDB. Every dplyr block runs as SQL.
Open in Playground →Finance

Portfolio Advisor
Portfolio advisor: investor profile, optimizer, allocation dashboard.
Open in Playground →
Share Explorer
Pick tickers and dates, and the price and return charts recompute.
Open in Playground →Run an example locally
The demos above run on blockr.cloud. To run one in your own R session, first install blockr:
pak::pak("BristolMyersSquibb/blockr@dev")Then install the extra packages listed for the demo and launch it.
Clinical Explorer
Explore an ADaM trial through demographics, adverse events, labs and vital signs, all driven by one cross-filter, with an AI assistant beside it. For clinical programmers and medical reviewers.
pak::pak("BristolMyersSquibb/blockr.pharma") # patient profile, AE heatmap, the study roles option
pak::pak("cynkra/blockr.outline") # the outline rail
install.packages("safetyData")
source(system.file("examples/clinical-explorer.R", package = "blockr.pharma"))Docs: blockr.pharma. Script: inst/examples/clinical-explorer.R.
Admiral SDTM → ADSL
Derive ADSL from SDTM DM with admiral, one derivation step per block. For statistical programmers who want to see each intermediate result.
pak::pak("BristolMyersSquibb/blockr.admiral") # admiral derivation blocks (derive_vars_*, merge, seq)
pak::pak("BristolMyersSquibb/blockr.ai")
install.packages("pharmaversesdtm") # SDTM example domains (dm, ex)
source(system.file("examples/sdtm-to-adsl.R", package = "blockr.admiral"))Docs: blockr.admiral. Script: inst/examples/sdtm-to-adsl.R.
Life UWR Workbench
A life underwriting workbench: expected claims per coverage and a dashboard of price drivers. For life actuaries and underwriters.
pak::pak("cynkra/blockr.input") # editable data grid (the UWR uw_factors worksheet)
pak::pak("BristolMyersSquibb/blockr.ai")
pak::pak("BristolMyersSquibb/blockr.code") # show / export the generated R code
pak::pak("cynkra/blockr.insurance") # census + claims data, formula chain, this example
source(system.file("examples/life-underwriting.R", package = "blockr.insurance"))Docs: blockr.insurance. Script: inst/examples/life-underwriting.R.
Actuarial Workbench
Price a property portfolio twice, as Base and Challenger, and compare the two runs in a waterfall. For pricing actuaries.
pak::pak("cynkra/blockr.input") # editable base_rate parameter grids (Base / Challenger)
pak::pak("BristolMyersSquibb/blockr.ai")
pak::pak("BristolMyersSquibb/blockr.code") # show / export the generated R code
pak::pak("cynkra/blockr.insurance") # pricing engines + portfolio data, this example
source(system.file("examples/property-workbench.R", package = "blockr.insurance"))Docs: blockr.insurance. Script: inst/examples/property-workbench.R.
Treaty Pricer
Price a layered excess-of-loss treaty: edit the tower, and the loss simulation, the premium and the charts recompute. For reinsurance actuaries.
pak::pak("cynkra/blockr.input") # the one editable treaty_tower grid (client structure)
pak::pak("BristolMyersSquibb/blockr.code") # show / export the generated R code
pak::pak("BristolMyersSquibb/blockr.ai")
pak::pak("cynkra/blockr.insurance") # the treaty tower data + this example
install.packages("Pareto") # piecewise-Pareto severity fit + loss simulation
source(system.file("examples/treaty-pricer.R", package = "blockr.insurance"))Docs: blockr.insurance. Script: inst/examples/treaty-pricer.R.
Does mosquito control work?
Refits a published mosquito-control study with blocks and with plain R, and writes the Quarto report from the same board, joint work with co-author Matteo Tanadini. For applied statisticians.
pak::pak("cynkra/blockr.stats") # dataset + model + model-summary + broom blocks
pak::pak("cynkra/blockr.outline") # the report builder, the deck builder, the minidag
install.packages("glmmTMB") # the published arm's fit
install.packages("broom.mixed") # its tidy() method
install.packages("gtsummary") # every table on the board
install.packages("broom.helpers") # gtsummary's tidier bridge, a Suggests since gtsummary 2.x
source(system.file("examples/aedes-ivm.R", package = "blockr.stats"))Docs: blockr.stats. Script: inst/examples/aedes-ivm.R.
Is the economy growing, or is it just the season?
Seasonally adjusts Swiss GDP from dataseries.org with X-13ARIMA-SEATS and puts the result beside SECO's own adjustment. For economists and statistical offices.
pak::pak("cynkra/blockr.ts") # pick, transform, combine
pak::pak("cynkra/blockr.seasonal") # the X-13 block and the series extractor
pak::pak("cynkra/blockr.outline") # the outline and the report builder
source(system.file("examples/ch-gdp-season.R", package = "blockr.seasonal"))Docs: blockr.seasonal. Script: inst/examples/ch-gdp-season.R.
DuckDB Lazy (100M rows)
Runs a chain of dplyr blocks on a 100-million-row parquet file in DuckDB, as SQL, without loading the table into R. For analysts whose data does not fit in memory.
install.packages("duckdb") # embedded OLAP engine, reads parquet
install.packages("DBI") # database connection layer
install.packages("dbplyr") # translates dplyr verbs to SQL
source(system.file("examples/duckdb-lazy.R", package = "blockr.dplyr"))Docs: blockr.dplyr. Script: inst/examples/duckdb-lazy.R.
Data Collection Process
A quarterly data collection from eight reporting units, run as a BPMN process with an event log and a worker for the scripted tasks. For statistical offices that run recurring collections.
pak::pak("cynkra/blockr.outline") # the outline rail the process editor is built on
pak::pak("cynkra/blockr.process")
source(system.file("examples/data-collection.R", package = "blockr.process"))Docs: blockr.process. Script: inst/examples/data-collection.R.
Portfolio Advisor
Pick an investor risk profile and an optimizer strategy, and the allocation dashboard recomputes. For investment advisers.
pak::pak("cynkra/blockr.portfolio")
source(system.file("examples/app-portfolio.R", package = "blockr.portfolio"))Docs: blockr.portfolio. Script: inst/examples/app-portfolio.R.
Share Explorer
Pick tickers and a date range to compare share prices and returns. For investors and equity analysts.
pak::pak("cynkra/blockr.portfolio")
source(system.file("examples/app-explorer.R", package = "blockr.portfolio"))Docs: blockr.portfolio. Script: inst/examples/app-explorer.R.

