# How a Stack Overflow question gave R its pipe operator

Original title: Plumbers, chains, and famous painters: The history of the pipe operator in R

> Hacker News story 50018929 · language: en · submitted 2026-10-09
> Web version: https://zeli.app/story/50018929
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 57 · by [sinnsro](<https://news.ycombinator.com/user?id=sinnsro>) · 💬 3
[original](<http://adolfoalvarez.cl/blog/2021-09-16-plumbers-chains-and-famous-painters-the-history-of-the-pipe-operator-in-r/>) · [HN discussion](<https://news.ycombinator.com/item?id=50018929>)

## Summary

The pipe operator in R, now a staple of data analysis, began in 2012 when an anonymous Stack Overflow user asked how to implement F#'s forward pipe. Ben Bolker answered with the first %>% function. Later, Stefan Bache created magrittr, naming it after René Magritte's painting 'The Treachery of Images.' The pipe evolved through dplyr's %.% and pipeR's %>>%, finally landing in base R 4.1.0 in May 2021 as |>, transforming how R users write code.

## Key quote

> How can you implement F#'s forward pipe operator in R? The operator makes it possible to easily chain a sequence of calculations.

---

## Cite

- Page: https://zeli.app/story/50018929
- Date: 2026-10-09
- Source: adolfoalvarez.cl (http://adolfoalvarez.cl/blog/2021-09-16-plumbers-chains-and-famous-painters-the-history-of-the-pipe-operator-in-r/)
- Hacker News: https://news.ycombinator.com/item?id=50018929

## Other languages

- zh: https://zeli.app/zh/story/50018929 · markdown: https://zeli.app/zh/story/50018929.md
- ja: https://zeli.app/ja/story/50018929 · markdown: https://zeli.app/ja/story/50018929.md
- ko: https://zeli.app/ko/story/50018929 · markdown: https://zeli.app/ko/story/50018929.md
- de: https://zeli.app/de/story/50018929 · markdown: https://zeli.app/de/story/50018929.md
- es: https://zeli.app/es/story/50018929 · markdown: https://zeli.app/es/story/50018929.md
- ru: https://zeli.app/ru/story/50018929 · markdown: https://zeli.app/ru/story/50018929.md
