| Zone | Distance | Time | Avg power | Work |
|---|
Workshop · Apps & Dashboards
REPLAY THE STAGE
Build a cycling analysis board, stage by stage, without writing a line of code.
An agent can scaffold the app in minutes. This workshop is about the structure that survives a second user and a second contributor.
Taught by David Granjon, creator of shinyMobile and a lead developer at cynkra, in partnership with cynkra.
If you have ever waited a week for someone to build you a dashboard, this is the workshop where you build it yourself, block by block. If you are the person who builds them, this is how you ship one before lunch and hand it to someone who can change it without you.
What you buildYou leave with A working cycling analysis board, built block by block from real stage data, that you can change and share.
The outline is published here when the academy record carries it.
Both run David Granjon's functions from blockr.cycling on the route of stage 5, with the code each block returns shown beside it. Neither uses any rider's data. Nothing is sent anywhere and nothing loads from another site.
Move a field in any of the four blocks. That block runs again, and so does every block below it.
Interactive board not loading? On the Stage 5, Mâcon to Belleville-en-Beaujolais route, the three-zone power block at its defaults (16, 30 and 50 km/h, 78 kg with the bike) gives 3,559 kJ over 5 h 32 min, an average of 178 W. Change a block upstream and every block below it runs again.
| Zone | Distance | Time | Avg power | Work |
|---|
Pick a section of the route, set the power, the rider and the road, and read how the power splits between gravity, air and rolling.
Interactive calculator not loading? It solves the force-balance block's model for speed on real sections of the Stage 5, Mâcon to Belleville-en-Beaujolais route. The model gives the session 2 slide's numbers: flat at 40 km/h takes 259 W, climbing 7% at 20 km/h takes 294 W, climbing 10% at 15 km/h takes 291 W (58 kg rider, 8 kg bike). On the flat most of the power goes to air; on the climbs, to gravity.
Stage 5, Mâcon to Belleville-en-Beaujolais, 140 km. Each view is rendered by the workshop's own code.





serve(
new_dock_board(
blocks = c(
gpx = new_gpx_read_block(path = file.path(stage_dir, "route.gpx")),
checkpoints = new_race_checkpoints_block(dir = stage_dir),
rec = new_race_recording_block(dir = stage_dir),
riders = new_race_riders_block(dir = stage_dir),
classifications = new_race_classifications_block(dir = stage_dir),
news = new_race_commentary_block(dir = stage_dir),
center = new_race_center_block(
title = "Stage 5 - M\u00e2con > Belleville-en-Beaujolais - 140 km"
)
),
links = c(
new_link(from = "gpx", to = "center", input = "data"),
new_link(from = "checkpoints", to = "center", input = "checkpoints"),
new_link(from = "rec", to = "center", input = "race"),
new_link(from = "riders", to = "center", input = "riders"),
new_link(
from = "classifications",
to = "center",
input = "classifications"
),
new_link(from = "news", to = "center", input = "commentary")
),
extensions = new_dag_extension()
)
)new_gpx_read_block <- function(path = character(), ...) {
new_data_block(
function(id) {
moduleServer(id, function(input, output, session) {
r_path <- reactiveVal(path)
observeEvent(input$file, {
r_path(input$file$datapath[[1L]])
})
make_gpx_read_expr <- function(path) {
bbquote(blockr.myrace::read_gpx(.(path)), list(path = path))
} new_transform_block(
function(id, data, checkpoints = NULL, race = NULL, riders = NULL,
classifications = NULL, commentary = NULL) {
Lesson 1: Understand Why blockr Exists 10:16

Change Upstream, Downstream Updates 1:07

You Might Not Need The GPX 0:46

What Is An HTML Widget 1:00
The board you build follows a real stage: its route, its climbs, and the riders moving along it. The profile here is drawn from public stage data; in the workshop you load the same kind of data into a block and the board does the drawing.

The chart on this page, drawn by code you can edit. R runs on webR and Python on Pyodide; nothing loads until you press Run, and nothing you type leaves the page.
Edit me: Move the window, or change the metric to runs_scored and run again.
Data: Season game log (game_log.csv). Simulated for practice by AthlyticZ (agents/sim_data.py, seed 20261109). License CC BY 4.0.
The code runs in your browser on webR or Pyodide; nothing you type leaves the page.
Taught by David Granjon, creator of shinyMobile and a lead developer at cynkra, in partnership with cynkra.
David builds blockr at cynkra and wrote up the Tour de France Femmes stage profile the workshop grows from: the post on cynkra's blog. The team page lists everything he teaches here.
David Granjon holds a PhD and is the creator of shinyMobile. David's work here sits in Apps & Dashboards. On AthlyticZ, David teaches Build a Cycling Analysis Board Without Writing Code.
Credit: David Granjon and cynkra, whose Tour de France Femmes stage profile is the work this workshop teaches from. Nothing from the post is reproduced here.
You should be comfortable with writing functions in R, and the idea of Shiny. You do not need to have built a package or a module before. Not for you if you have never written R, or you want a finished dashboard handed to you rather than built.
The full recording, yours to keep: buy once, watch any time. Masterclass subscribers get every live session for a year and can watch every recorded session for as long as they are a member. Everyone else can buy a recording on its own.
No. The recording plays in the browser.
Twenty minutes on a call before you buy costs nothing, and the call is the fastest way to tell. If you bought it and it is the wrong one for you, email michael@athlyticz.com and a person will answer.
The Masterclass is all of it, live and recorded, for $1,899 a year, or $199 a month. Paid by the month, it renews monthly at $199, cancel any time by replying to your receipt.
Build a Cycling Analysis Board Without Writing Code. The recording, yours to keep.
Buy nowEvery live session this year, and every recording.
Join the MasterclassLoading the calendar.
The calendar did not load here. Open it on Calendly.
Confirmed
Calendly has sent the invitation to your inbox, with the link for the call. Michael will see you then.
We've teamed up with AthlyticZ to supercharge how we use data science and statistics to impact our sports. More clarity in the numbers means bigger results for our athletes.
AthlyticZ has completely transformed the learning approach to data science through the use of sports-based problems. The instructors are the best of the best, and the practical projects have immediate impact to students.
The sports industry moves fast. Managing the pace of evolving technology, data, and AI isn't optional - it's imperative. Our Analytics team was looking for a partner to meet us where we are, to help us in the continued investment of our people and capabilities without pulling us away from the work that matters. AthlyticZ delivers exactly that: a structured, practitioner-led platform that fits how modern sports analytics groups actually operate.

