A massive milestone for the language that eventually led to the R we know and love, plus a comprehensive look at two popular workflow frameworks across the R and Python ecosystems. Episode Links This week's curator: Jon Calder - @jonmcalder@fosstodon.org (Mastodon) & @jonmcalder (X/Twitter) S at 50 Comparing R's {targets} and dbt for Data Engineering Entire issue available at rweekly.org/2026-W20 Supplement Resources Fifty years of S poster https://blog.r-project.org/post/S-at-50/s_at_50_poster.jpg Quarto 2: Parsing and Source Maps https://opensource.posit.co/blog/2026-05-07_quarto-2-parsing/ Beyond Feasibility: Learning from FDA’s Response to WebAssembly and Container-Based Submissions https://r-consortium.org/posts/beyond-feasibility-learning-from-fdas-response-to-webassembly-and-container-based-submissions/ Supporting the show Use the contact page at https://serve.podhome.fm/custompage/r-weekly-highlights/contact to send us your feedback R-Weekly Highlights on the Podcastindex.org - You can send a boost into the show directly in the Podcast Index. First, top-up with Alby, and then head over to the R-Weekly Highlights podcast entry on the index. A new way to think about value: https://value4value.info Get in touch with us on social media Eric Nantz: @rpodcast@podcastindex.social (Mastodon), @rpodcast.bsky.social (BlueSky) and @theRcast (X/Twitter) Mike Thomas: @mike_thomas@fosstodon.org (Mastodon), @mike-thomas.bsky.social (BlueSky), and @mike_ketchbrook (X/Twitter) Music credits powered by OCRemix J-Type - Tetris - Nostalvania - https://ocremix.org/remix/OCR04401
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Hello friends, we are back of episode two twenty six of the R weekly highlights podcast. This is the weekly podcast where we talk about the excellent highlights and additional resources that have been shared in this week's issue of RWeekly, which you can find at rweekly.org. My name is Eric Nance and I'm delighted you join us wherever you are around the world and usually this is the spot where I introduce, my awesome co host Mike Thomas. Unfortunately, he had an event occur today, so he wasn't able to make it. So I'm going to fly solo on this and
not only flying solo, this will be the first episode in a very long time that we totally revamp how I personally record the episode. I am probably going to move away from the platform that I've been using for a number of years now because they have been bought by another company and they seem to be shifting priorities into the actual recording of live audio. They seem to be focusing more on the editing of it, fair play,
but I want to, maybe try a different approach that actually resembles what I've done in the past with another endeavor. So I am actually recording this episode directly in OBS, which was the same setup that I used for the Shiny Dev series, if you recall that. So the audio hopefully doesn't sound that much different. If it does, I will work on that, but this will be a good test run to see what it will look like when Mike joins me again hopefully next week when we can try this again.
In any event, we're here to talk about Weekly of course not about audio engineering and the curator for this week's issue was John Calder and as always he had tremendous help from our fellow R Weekly team members and contributors like all of you around the world of your poll requests and other wonderful suggestions. And it's always great especially as a, you might say, a veteran of data science and especially using R since not quite the beginning, but relatively close to it.
In fact, I venture to say many of you in the audience may have been born after R was actually released, I would not be surprised, and you may have heard about the history of R either for myself or other community, know, conferences or other, you know, even podcasts even, but R did not start just with R. It actually has quite a nice lineage and that is a subject of our first highlight which celebrates a major milestone
in what ended up becoming one of the most influential languages in programming data science and statistics. I'm speaking about a blog post from the official R blog by Martin Plummer celebrating the milestone of the S language now turning 50 years old this month. That is amazing and so you may be wondering if you're you're either new to R or maybe just haven't been around as long
what does S have to do with all this? Well, let me tell you what it has to do with all this. The S language was originally developed by John Chambers and Rick Becker at the very important and influential Bell's Labs, which has been a very, very important, institution in the world of computing. I could go on and on about some of the other, things that have come from Bell Labs,
most notably the Unix language had a big, big help from Bell Labs, but in particular with respect to the S language, it was back in 1976 that John Chambers and Rob Becker started a new project that they weren't quite sure what it was going to turn into, but it started as an interactive way to invoke statistical algorithms that were actually for trans subroutines,
but to have a nice general interface to calling these subroutines and with, you know, structure to the objects going in, like data frames other objects like scalars and whatnot, and that started taking off and they later named it S after a few months, and after S, yeah, things got pretty interesting and start to have some books written about S by John Chambers, especially
they call it the brown book in 1984, and then when you look in the show notes of this episode, we'll link directly to the commemorative, poster that has been, you know, celebrating the fifty years of S, and you get a snapshot of what these, books look like. The first one from 1984 is affectionately called The Brown Book that John Chambers and Rick Becker co authored called An Interactive Environment for Data Analysis and Statistics.
Much of what you see in Base R came from S. S itself had some interesting evolutions. In fact, some of you may know of a derivative of S that was called S plus that was actually done by the company insightful I believe and later that kind of petered up why did it peter out well after s plus started becoming like a commercial offering of s
well then you go to the 1990s nineteen ninety three to be exact, that's when a certain, professor, a set of professors at university of Auckland, Ross Ahaka and Robert Gentleman, decided to take what they were inspired by, by the s language and kind of extend it a little bit and bring it back to the open source roots, I. E. The R language. So if not for S, we probably would not have R,
and if we didn't have R, I would be a really sad data scientist or statistician. It has been so fun to use this in my daily work, hence why I started the R podcast however many years ago. I am so passionate about what it brings to us in the world of computing in general. Yeah, data science of course is a key focus, but R much like Jared Lander often says in his New York R meetups,
R can be used for practically anything. I venture to agree. But with that, I do recognize the place in history that the predecessor for R, the S language, has in this journey. So I invite you to check out that poster. It's got a great visual of even though what became like a on paper sketch of the algorithm interface that ended up becoming, you know, the mainstay of S as well, and just seeing how John and Rick were thinking about the inputs and the outputs accordingly.
Absolutely fascinating stuff. I would love to have a time machine just to be a fly on the wall of how John and Rick were coming up with S, some of the discussions that I'm sure they had. I could watch that for hours upon hours if that ever been recorded, but we at least we have the milestone to celebrate and I hope that we'll have future milestones for the r language itself I don't think it'll go away anytime soon and I'm always here for seeing the impact it will have on our world going forward
rounding out our highlights today, we're going to look at a definitely a modern use of R and another framework in the realm of data engineering or you might say pipeline generation with data engineering. And in particular this blog post comes to us from a fellow RWQA curator, one of the OGs I would say Jonathan Carroll, who as you know from previous episodes loves to get into a lot of the technical algorithms
and the very many adventures in the world of computing and data science. And in this one, he has taken some time to compare two definitely different frameworks, but yet used in a similar context and seeing how that might play out for you as a practical data scientist looking to maybe choose maybe one of these frameworks depending on your analytical project. So John prefaces by saying he's been getting into a lot of the data engineering side of work
and yes, like me, he's using R extensively throughout this and just as I alluded to in the first highlight I see a problem I often think there's a way to handle it in R sometimes maybe I could have done it better in other language so it's always good to kind of see what else is out there. Workflows and data engineering you can think of this as you may be getting your raw data from a service or a database
you got to do some processing, maybe some munging, and then you're building maybe a visualization or analysis report, maybe you're running on an automated basis and you know that processing is of the essence. You don't want to redo work unless you absolutely have to. This can be hugely important when you're dealing with, you know, cloud based resources or on prem resources that are shared such as maybe an HPC cluster or something, and you want to be a good steward and not run
many additional processes or use the CPU cycles unless you have to. So John took this as an opportunity to think about how you might approach a data engineering workflow problem with a couple of different frameworks. One of them you'll probably be very familiar with if you listen to this show, and another one is new to me. We'll start with the newer one. The tool is called DBT, and it seems to stand for data build tool,
and this is actually a Python module, the dbt core module to be exact, and it is from the organization dbt who look like they offer a cloud kind of offering on top of this, but in an OpenCore like fashion, the actual Python library that invoke the workflow in dbt is most definitely open source. There are some interesting examples that he references in the post, such as walking through this,
such as a recent data science lab recording from Libby Heumann and others, and as far as what DBT does under the hood, it very much treats a lot of the data processing as SQL like problems and that you can basically run even analysis routines into kind of SQL like processing. Yes SQL is very very important if you're in any kind of data engineering
of such but it takes a kind of functional approach to the SQL queries that it develops as part of its pipeline generation. And then we get to the R side of things and you probably won't be surprised of what John, found on this because it is a very popular way to do it. That is the TARGETs package. TARGETs is of course the package authored by Will Landau, part of the R Open Sci umbrella. It's basically the virtues of the make utility
in the confines of R with a whole bunch on top of it. It is very much for managing your workflow, it could be data processing, could be statistical analysis, heck clinical simulation, I might know a thing or two about that and certainly Will does as well, you can use it for almost anything. There will be some things where maybe targets isn't the best for which I might touch on at the end of this, summary here, but with the rest the one thing to keep note
it is all in R, it is not trying to be opinionated on how you do your analysis. If you can write in R function, you are already well on your way to writing a targets pipeline. So with this, let's talk about how John compared the two. He actually took a fun case of analyzing some of his current finances, his spending at different maybe classification of, you know, types of expenses or where he spent those expenses and whatnot.
So he talks in this blog post, this is really innovative, when we get to the comparing workflows section, you can toggle between the dbt workflow and the targets workflow right in the same post with the nice little tab set functionality that Quartle offers you in this case. I believe he wrote it in Quartle, but either way, he's got a nice tabbed interface here. So one thing to note for the DBT workflow is he is leveraging DuctDB
as the database engine. DuctDB has a lot of great, momentum around it. I'm a huge fan of it, but you can plug it in very easily to the DBT workflow. And you organize the workflow in different sub directories that kind of, you might say, look at the different stages of a data engineering analysis pipeline. So the first one being a sources YAML file. So if you write YAML, like I do a lot with either
Quarto headers, R Markdown headers, or Goem configs, YAML is a very, you know, powerful framework for all this. So, luckily in this data that he's working with is a bunch of CSV files he's exported. So, DuckDB does, of course, have a built in method to read csvs so you can do this within the database you don't have to shell out the python for this you can literally just take advantage what ductdb has to offer you know he reads these csvs in the in the raw directory that he set up
and then as far as, there's a sources yaml file that tells it how to read it to actually read it there is another SQL file called STGbank. Sql, and this is where you are writing what looks like SQL code, but you kind of do this interesting idea of like these functions such as filtered as or clean as,
and these are kind of like the quote unquote analytical side of the pipeline, but within this, you can put, say, a select statement, a where statement, if you know SQL you'll know exactly what those about what those are all about. You might do some processing in there as well in your, selecting maybe regexes or whatnot And you could have any number of these kind of processing SQL scripts as long as you reference them in the YAML file that you outlined for that step,
you'll just fine. And in fact, I think you can have different enamels or different parts of the process. But it goes from just not just ingesting the data, it's also maybe joining multiple tables together or munging it of sorts, and that's where there's another step in this intermediate section where he does transactions, so to speak, and then to generate the summaries and outputs, that's he had another subdirectory in this.
There's like a models marts subdirectory, yet more SQL. Then in this case might just do an aggregation, such as like average spending by the different categories. You could do all sorts of things there. DBT also comes with some nice ways you can add testing in your workflows with using a file called schema. Yaml, and this is where you could tell DBT the pipeline,
what are like the type of columns you expect, the names of the columns and the type that you expect, so that you can make sure that your desired format of the data table at the end and the source table are meeting those requirements. And it looks like it'll just run these free of charge once you configure them without a lot of fuss. That is pretty neat. I think that's a welcome feature of DBT. And as I mentioned, you can also, at the end of your analysis,
literally have some additional SQL type of code to derive variables. Maybe you want to get the average and standard deviation after group processing. That will give you a new table in this. So each of these stages is going to generate different tables and then you can kind of see then how it all fits together, but in the end you've got a series of SQL files sometimes they have a yaml file to help with either the testing or the importing of it and then with the dbt package
you have a run command or I'm just gonna say the run commands from uv to manage python dependencies but you have a command called dbt build which will then go through the steps. It'll run, it'll make its own DAG or direct a cyclical graph to show the different steps and only rerun the tables that need refreshing based on what may be changed in the sources. So there is a way you can visualize the DAG as well,
because dbt has a docs command that will bring up an interactive or I should say a web based page where you can look at all the steps, look at the different columns in your data sets, and also see what they call the lineage graph, which is the DAG. So again, for data engineering, this looks like a solid approach. And of course, you could feed those output tables that you get at the end into something like Streamlit, like he does in this example, to have a little dashboard
that he, that used AI to create that dashboard a minimal MVP does the job. So how does that look in targets? Now again in targets with csvs that's not going to be an issue at all, right? We can just import CSV and built in base R, we could also do a whole, you know, with the read R package, you could do all sorts of things there. So with that, you just with targets,
the main thing is you are writing functions to do each of the steps, such as, like I said, reading the files. You could have a a read underscore files function, that will help you with with that side of it. You can also do, you know, some munging with dplyr. Maybe you wanna add you know, bind rows together, mutate if you're familiar with the tidyverse. You know, you can do anything like that in targets as you like.
And then what's nice is you get to those intermediate steps. Again, nothing fancy here. It's simply writing functions to take what was maybe done in a step before, do some additional munging, return the object, and targets will keep record of all these objects in its cache as you're producing these. I'm only going briefly into this because I could talk for hours about targets, but the blog post has all these snippets,
you can see all the steps in action, really straightforward, and then you get to really some of the nice goodies that targets gives you. The way to visualize the DAG, I think, is first class. I have not found a better framework for this. It's simply tarviznetwork and you will see then the DAG in an interactive HTML graph powered by viznetwork where you see the nodes that either have not run yet or have run and they're colored differently so you know what is already done
and maybe what needs to be rerun if something in the sources change. So I would say if you're an R user and you don't have esoteric needs on the type of data you're looking at, my hypothesis is target is going to get you there most of the way. Now john wraps up this post by looking at the different trade offs and different, intricacies of each of these. If you like SQL and you're doing data engineering as a whole, yeah dbt looks really solid for you. It seems like you're going to be fitting right at home with this workflow
you don't necessarily have to do a lot it I wouldn't say you want to position this as folding in all of your analysis in it but if you do a situation like he references, say, maybe a company of the scale of Netflix will have different pipelines for the actual analysis of tables that it generates from its source data, but they may want something like DBT to do the data engineering side up to a point, let something else take over on the analysis and visualization
side. I could see that being very appropriate. With the type of analysis you're doing though and the type of data, if you're comfortable with R, I'm going to keep saying it, it's hard to beat targets in this case for sure. I agree with John that I think visualizing the DAG is very efficient in targets. It just works. It gives you the information you need. And also targets gives you such an easy way to inspect specific
steps in your workflow. If you just want to inspect that manually and or regenerate just certain parts if you need to or debug certain parts if you need to, Will Landau has done an immense job with all the infrastructure behind targets. There is so much you can take advantage of. So there are other solutions in this space across different languages. John mentions that there is Airflow that from the Apache organization
that can help you both, construct pipelines and schedule them. I know that's talked about quite a bit. On the R side of things, on more of the data engineering side of things where maybe targets isn't quite up to par with certain aspects. There was a package that we talked about probably last year called Maestro that is helping data pipelines, on its own. So if you were in a situation like Netflix, maybe Maestro might help with some of the data specific things, especially coming from
data that's from upstream APIs or database connections that aren't as easily incorporated into targets based on the way it, you know, tracks changes or caches, Maestro might be worth a look. I have a play with it myself. I remember covering it last year and it does show a great promise. In the end, you know, it's always what fits your workflow best, but I do love Jonathan's approach here. Take a practical problem
something where you know you know the steps you need to do that data processing and or analysis, and it may change over time, but the steps don't change over time. Maybe your data or your inputs change over time, but you don't necessarily have to rerun everything every single time. This is where targets and DBT will make you feel right at home. He does invite comments if there are any important trade offs or use cases that maybe hasn't mentioned here, definitely
don't hesitate to get in touch with Jonathan. He's on Mastodon. He's highly visible on that side of things. Always learning, always interacting with the community. So it's great to see another satisfied user of pipeline tools and DBT and targets are great for these use cases and I can't wait to hear what all of you do in your next pipeline adventures. And speaking of adventures, I know you're going to have many more adventures in the world of data science in your explorations of R and that's where looking at the rest of the R Weekly issue will come to play. We have a great collection of additional resources
across different categories such as new packages, tutorials, and whatnot. So I'll take a little minute or two here to talk about some additional finds that caught my attention. Well, is an innovative change on the horizon or a massive update in the works and that is actually the next major version of quartal being called quartal two. Quarto two is going to be a significant rewrite of quarto itself.
Any guesses what language is going to be on the underpinnings? Yes, it is rust. Everything's being written in rust already these days it seems like but no no it's cool to see but, you may want to check out the issue because, posit has a series of blog posts introducing some of the underpinnings and other innovative use cases of CORDL-two that are happening. So Carlos has a great, great write up here about how source maps and
parsing is going to be handled with this new engine processing, portal documents. There's a lot to choose from here, especially if you're interested in tree sitter like things that we've been covering in past episodes and they have one going for markdown too so I think this is going to lead to some interesting things but yeah chordal two it's going to happen eventually in fact it may even be later this year we'll find out
And we love to find out what great resources that you are finding out there, or maybe you're creating a new package or a great new use case of R in the world of data science. We want you to tell us. The best way to tell us is to go to rweekly.org and send us a poll request to the upcoming issue draft where you get a nice template in the upper right corner. Just click that little ribbon and you'll be able to fill out a pre populated template that tell us about your resource that you want to share. It could be blog posts,
could be a new package you've built, it could be a community event that you want to get the word out on. We love to hear it all. So we're just a poll request away, as they say, and and if you can write markdown you can definitely do a poll request and with that you can also get in touch with myself on the social media areas here I am on various platforms such as blue sky or I am at rpodcast@bsky.social I am also on mastodon @rpodcastatpodcastindex.social
and I'm on linkedin search my name you'll find me there and in fact we had a recent, you might say accomplishment that's been brewing for a bit, on behalf of the submissions working group we now have officially on the R Consortium blog a write up of the container and web assembly submission pilot that we did for a shiny application to the FDA. Very, very interesting journey. I've talked about that in previous presentations, but it's a great write up, from the rconsortium blogging team I'll put a link to that in the show notes as well
and with that I'll close-up shop here for episode two twenty six who knows how it turned out in this new setup but if it works well, it's going to make things a lot more fun for both Mike and I as we do this going forward. And yes, I would be back to using an open source stack if this does indeed pan out well. So like I said, we'll close-up here. Thank you so much for joining me for this episode of weekly highlights. We'll try to be back to normal next week without just me blabbering on for thirty minutes or so, but I'm glad you listened anyway and we'll be back with hopefully a new episode of our weekly highlights
Our takes on the increasing removal of friction in good and not-so-good ways thanks to AI, a visual tour of hot air balloon accident data, and a case study of novel image recognition with the rplatipus package. Episode...
The flow of both data and analytical jobs just got smoother with mizu, opening the door for multiple agent harnesses in Positron, and an optimal statistical model tailored to complex experimental designs with a friendly...
What happens when that online data set isn't so easy to download anymore? We learn of two packages to ease the pain of obtaining these files and then some. Plus a visit to the visualization corner with a handy way to...
The celebration of rOpenSci's 15-year anniversary continues with the community sharing their perspectives, and a fun Shiny app that could be quite useful during celebrations on a weekend or the holidays. If you ever...
We learn about the variety of ways you can contribute back to the core of R, a roundup of the excellent choices available for package and environment reproducibility, and an amazing collection of Shiny applications and...