Skip to content
Join our email list to get $80 off Ally in November →
R for the Rest of Us Logo

What’s New in R: November 23, 2026

Welcome to this week's edition of What's New in R! This week, we're featuring an animated Sankey chart of global oil flows built with R and D3, a new way to let coding agents like Claude Code work right inside Positron, and evidence that Michigan's newest senator is an R user. Let's dive in!

Global crude oil flows through the 2026 Hormuz closure

John Paul Helveston loves Sankey charts, but as he points out on Bluesky, they only show a snapshot. So he made an animated one that traces how global crude oil flows shifted day by day from January to August 2026, as the closure of the Strait of Hormuz cut the oil moving through it to almost nothing and sent it through bypass pipelines and other routes instead. The full version, linked from his post, lets you scrub through the timeline alongside Brent prices and daily tanker counts, and click any producer to follow its oil to the countries that use it. John built it with R, D3, and Quarto, and it's a great example of how combining R with other languages can produce visualizations you couldn't make with R alone. There's also a detailed methods page explaining how he modeled the flows from many public data sources.

Read More →

Bring your own agent to Positron with the Positron MCP

Last week I mentioned the new MCP server in Positron's October release, and now Jonathan McPherson has written a full post about it. Lots of people prefer their own coding agent, like Claude Code or Codex, to Posit Assistant, and while those agents already run in Positron, on their own they work as if they were in a plain terminal: they can't see your data, your plots, or your console. Turn on the experimental MCP setting, run one command to connect your agent, and it can see your loaded data, run code in your R and Python consoles (labeled with the agent's name so you can tell it apart from your own code), look at your plots, and pick up work you started. Jonathan also includes an important note on security: connecting an agent this way is equivalent to giving it unrestricted shell access, so make sure you understand your agent's permission settings first.

Read More →

Michigan's new senator is an R user

Abdul El-Sayed, who was just elected to the U.S. Senate from Michigan, is apparently one of us. Kevin Ushey (the author of {renv}) spotted it in a 2020 paper in the American Journal of Public Health on county jail incarceration rates and mortality, which El-Sayed co-authored during his time as a public health researcher. The methods section says the analysis was done in R version 3.6 using {dplyr}, {ggplot2}, {gtools}, and {lme4}. Kevin declared him an honorary #rstats community member, and the replies (including a debate over the best version of R ever) are worth a read too.

Read More →

If you enjoyed this issue of What's New In R, please share it with a friend! And if they want to get What's New in R directly in their inbox, they can sign up on the R for the Rest of Us website.

Got any ideas for resources I should feature in future issues of What's New in R? Leave a comment below!

Sign up for the newsletter

Get blog posts like this delivered straight to your inbox.

Let us know what you think by adding a comment below.

You need to be signed-in to comment on this post. Login.

David Keyes
By David Keyes
November 23, 2026

Sign up for the newsletter

R tips and tricks straight to your inbox

New from Ally Debug R error messages