A retrospective that showcases favourite data visualisation projects and insights from 2025, a practical guide offering R package maintainers methods to gauge how their package is being used, and an R package release introducing additional helper functions that extend dplyr::mutate() for generating columns with useful rowwise and list-column operations. Episode Links This week's curator: Batool Almarzouq - @batoolmm.bsky.social (Bluesky) & @batool664 (X/Twitter) My year in data visualisation How to Assess Usage of your Package {mutagen} 0.5.0: Extensions to dplyr's mutate Entire issue available at rweekly.org/2025-W51 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 Watermelon Flava - Breath of Fire 3 - Joshua Morse, posu yan - https://ocremix.org/remix/OCR01411 On Wings of Steel - After Burner - Juan Medrano - https://ocremix.org/remix/OCR03405
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're back with episode 216 of our weekly highlights. This is the podcast Mostly Weekly, where we talk about the latest highlights and other excellent resources that have been shared on this week's our weekly issue. My name is Eric Nance, and, yes, the the year is already wrapping up. It's amazing how quickly 2025 has gone in certain aspects. But, yeah, here we are in December. Right? So we're gonna close out strong here. This will very likely be our last episode of the year as obviously next week and I hear
from many celebrating the Christmas holiday that will be right smack at our usual record times. And we'll likely take the rest of the year off, but we're gonna finish hopefully strong in this episode here. And my co host, Mike, is joining me right now virtually, but we're gonna kinda get right into it here to save us some time and because yours truly forgot to hit the record button when we first started this. But this week's issue is curated by Batoa Almerzak.
And as always, she had tremendous help from our fellow, our weekly team members, and contributors like all of you around the world with your poll requests and offer suggestions. And leading off of our highlights this week, and it's been, you know, as as this time of year rolls around, the time to reflect, time to think about our journeys, whether in data data science, data visualization, etcetera. But on the topic of data visualization, one of our most frequent contributors to our weekly in terms of the highlights
is back with telling us about her journey throughout the year and her visualization adventures. And that is none other than Nicola Rini, who I would also want to shout out for being very gracious of her time at the recent r pharma conference of helping us with a workshop and kicking off our second day, but nonetheless she is here with this blog post entitled my year in data visualization and she leads off with the fact that it's been a pretty busy year for her personally
such as a small detail of changing a job midway through, but that change of job apparently has given her the ability to work on data visualization a lot more regularly now as part of her new role. So that's been great to see a lot of her learning journey in this, but one of those various ways that she learned is to try new ways of visualization. So after her introduction to the post, she leads off with, it definitely doesn't look this way,
but it is a built from scratch visualization of what's called a Tardis, which is kind of like a looks like a police station entry point or a box. I believe that's native to Great Britain or England, but she built this, not with r, entirely with d three. Every rectangle, every line, every feature of this, whether it's the roof, the windows, the door handles, the letter on the door itself,
all built through code. And you can actually visualize this online. She's got a and now that I see when it's online, it's referencing doctor who, another great show for all of you out there. I need to catch up on that, but this was, you know, dealing with, traveling through time and they used this, Tardis which was a ship disguised as a police box. So that's where it's inspired from. But when you click that link, you can actually play with this in real time and get tool tips over the different parts of the building.
So it's not just the visuals, the interactivity of it to boot. So amazing stuff, and there is a link to the dedicated blog post about this if you wanna learn more. Really good stuff here. And next from the data visualization side with actual data itself, she highlights in one of her favorite visualizations this year was looking at how passport strengths have changed over time throughout the different countries and continents around the world. And this is definitely,
a really powerful hybrid of a line chart with the different lines for the different countries or the regions within them. Very quick to the point, but nice use of facets, nice use of color, and it is really really inspiring to see you can do that all with ggplot two. And then she also talks about her visualizations around the fact that the tidy Tuesday project has been a huge focus for her.
Ever since her beginning of working with that data in 2021. But it has been a great catalog that she's put together, which you can see in her actual graph gallery, visualization gallery, if you want to look at that in the blog post, but she puts in this post here, her first visualization for transit infrastructure costs across the different countries and for our first ever contribution to tidy Tuesday that looks fantastic as well.
So she had no idea back when she started how long that she would be doing this but she's keeping on going strong and speaking of strong she wants to keep going strong in 2026 on top of doing new workshops in the realm of visualization. She has a new book coming out folks called the art of data visualization with ggplot2. I am definitely putting that on my bookshelf. I cannot get enough of this kind of content and I will be keeping my eyes open she says to stay tuned for more information
and that will be something I use to try and level up my visualization side of it which to be frank here I have not had nearly the growth of my visualization exploits that she's had this year but hey better late than never so I'm hoping in 2026 I get to train myself a bit better, the data vis side of things. Mike, what did you think about Nicola's journey here? I thought this was a fantastic reflective post to to wrap the Europe in data visualization from Nicola's perspective,
and great shout out for her new book. I've had the opportunity to take a look at the online version a little bit. It looks phenomenal, some great use cases, very applied. It seems to be a beautiful quarto style book, so you gotta love that as well. And once you have a chance to check it out online, buy a copy from CRC Press and support Nicola in all that she has given us in the data visualization community. She consistently does a phenomenal job, via her website and GitHub, making her materials,
you know, not only for her 21 talks in 2025, but her many, many more talks and presentations in years prior, Making that all publicly available from for us to learn from and not just the slides, but also the underlying code within the GitHub repositories that that she consistently puts together. And I'm very grateful for that. I have have leveraged those repositories many times over, in some of my data visualization projects that I've had to do, that have been very helpful. So thank you, Nicola, for that. And as you mentioned, Eric, this this passport strength visualization that she highlights as one of her favorites from the year is so cool.
The craziest that I get is usually fascinating either my bar line or scatter plot. I've got lots of improvement, and this chart has so much information packed into it. But at the same time, it is is very accessible to understand the message that's trying to be conveyed, the highlighting of the lines that she wants to draw your eye to, and then sort of the graying out of the other lines that you can still see them if you want, but they're not sort of telling the story, and she's able to leave the story with the highlighted lines. And she also highlighted, no pun intended, the ggplot two battles project, which was an effort by Mike Lattimore to create a competition.
It looks like to recreate a chart using r, ggplot and WebR, and obviously doing all of this right within the browser, which is super cool. And, you know, she also highlights sort of at the end of this blog post that the TidyTuesday effort, I know she's been involved in. And my recommendation here is if you're looking to advance your career or stand out, you know, in the hiring process, which I know is really difficult these days, or even if you're looking to network with other data scientists, I know there's a fantastic community on Blue Sky around folks doing TidyTuesday.
It's such an easy thing to get involved in, and a great way to start learning. As well, you can join the DSLC Slack community, Slack Workspace, because I know there's a lot of folks folks on there doing TidyTuesday as well. And, that would be my recommendation for any career advancement into 2026 for the data vis folks out there. Yeah. It's it's amazing, like you said, how open that Nicola has been and offers in this space to help everybody, you know, learn new techniques and and for her to learn new things too and not just keep it on their silos, but, but to share it as well from both herself and others in this in this space. So this will be some fun some fun watching and some fun, learning for me as I get some downtime this break to hopefully level up on some of my skills. Famous last words, of course.
And up next in our highlights today, Mike and I are no strangers to building, whether it's applications or packages used by our clients or our customers and our respective organizations. And sometimes we get asked quite a bit, how's it being used? What are the most popular uses for it? And sometimes it's hard to just think about what are the best ways to assess that. And it gets probably even more complicated, honestly, when you think about the world of open source as well,
because you may be thinking you've you've done all you can, but maybe there are a lot of other areas that you're not quite that, you know, not quite thinking about. But it's not as hard as you might think to be able to find some interesting ways to assess just how your r package is being used in the world. And this next post is coming to us from the rOpenSci blog, author by former curator of r weekly, Ma'al Salman. And she has this great, great post entitled
how to assess usage of your package and going over some of the various ways that you can start measuring this and not in any creepy ways or anything, but some pretty novel ways to look at this. Right off the top, probably one of the most easiest ways if your package is on the the CRAN repository or Bioconductor, you can find data associated with the download of your package. And she's got links to both the CRAN logs project
as well as the Bioconductor project and their package stats. Now there are sometimes, you know, I have to take some of that with a grain of salt for sure. So you gotta watch that a little bit, but it can be a good, you know, first indicator of things. And then the other thing to note is that what if your package, has, is part of reverse dependencies? And you may wanna talk about or figure out a way to enumerate
just what is the dependency footprint, so to speak, about where your package is being used or what your dependency footprint might be for your package. And she has an example here for counting the number of hard dependencies, which are the imports packages are declared in the description file of the cURL r package. Pretty easy way to do that with some package, coding here. And there's also you can count the number of direct or what she calls nonrecursive dependencies
with a package called p k g cache. I I never heard of this before, so I'll have to take a look at this when I get some time. But there's a nice snippet here to count the number of direct, dependencies with curl, and ends up being around 436 if my eyes are serving me correct. And then the total number of dependencies when you go through that kind of entangled diagram of network of sorts
for curl is well, my gosh. My eyes just see me. 5,277. My goodness. That's that's a that's a big number. So what's nice is that this these metrics are also accessible on the our universe project. So you can grab that information from a package website as well. But the package cache, package itself, easy for me to say, gives you another way to get to those dependency metrics.
And then also if your package is distributed on GitHub, there are some neat ways you can use intelligent or advanced GitHub searches to find instances of where your package is being used. And she's got an example of, again, going back to the cURL package searching for the text of library cURL and to be able to see just how many, you know, repositories that shows up in. But then also you can take advantage of badges as well, such as from our universe and others,
that give you a way to quickly on a repo enumerate how many times your package has been, you know, downloaded from our universe and the like. Some cool ways to do that. From the research perspective, you can also look for citations of your packages. And once again the our universe project gives you a display on your packages page on your citations as well. So you might want to see maybe not so much the number but just what is the breadth of, you know, research out there that's leveraging
your your particular package. Other ways of doing this as well with repositories like GitHub, usually people will send a little like button, or like indicator for a repo, and that can be nice to kinda see some higher level metrics of just how much is being, you know, liked in the in the open, so to speak. But, also, what kind of contributions are getting to the repository? A lot of issues being reported, maybe code contributions.
You can you can take a look at a lot of that too, and there is some experimental support to get this, from the rOpenSci side of things looking at, repo metrics and experimental dashboard that she has linked to in the show notes, to kind of take a look at a high level for the rOpenSci project, but maybe you have a suite of packages that it might fall under. Who knows? There are some newer efforts to try to build in
a non obtrusive form of telemetry, in the r ecosystem. This has been a touchy subject in years past where it did cause quite a social stir, if you will, for some, I believe some at the time posit engineers asking about something like this. But one of the newer packages out there that's gained a lot of good attention, it is using this but an ability to opt out of it is the duct plier package. They really want to use this to help inform their priority for development.
But like I said, there are transparent ways to turn that off if you're not comfortable. But if you think about it from the world of a maintainer, yeah, your package may be used by thousands of people potentially. But how is it being used and what are the gaps that are being seen? Sometimes people don't report those issues on GitHub or the mailing list or whatnot. So being able to find a way to let users in a non privacy violating way to send that information to developers I think is something that needs to be looked at and maybe duck player is the first you know success story in that space
but I guess time will tell. As you can see, there are varied approaches to assessing usage, whether it's number of downloads, citations, footprint and dependencies. But my I was giving us a lot to think about if we're gonna build some of these, you know, real time kind of tracking in our packages, but different ways of doing that. So definitely something for me to ponder about this break, about my new Shiny State package. Are there ways I can measure that usage in the open source? So we shall see.
There you go. Yeah. For the the only way that I've ever measured usage of any of my packages is using the crayon or they call it medic crayon badges in my read me, that show me how many either lifetime downloads I've had, how many downloads per month or year. I think it has some different options, but it's a nice it's a nice feature that we've had for a long time. And I haven't done much more than that and like you, Eric, I had not been aware of the package cache, our package yet, but it seems like it does a lot of the heavy lifting for us,
allowing us to explore, you know, not only the packages dependencies but also its reverse dependencies which can be pretty interesting as well. And it's nice to see that we can do this and when I say this, I mean, use that this package cache, our package for both crayon and bioconductor, and one really useful tip that Mel points out in this blog post is leveraging the advanced search sort of capabilities on GitHub, which is something that
I have not done and I know, you know, sort of these search queries have so much power behind them if you take a few minutes to actually learn how they work. Right? And Mel put a great use case together about how to search for code mentions on GitHub. Really just seems like sort of a get request. You're just appending on to this URL, of github. Github.com/search. And a great example there, she posts to try to take a look at how many times, the the curl package is used in GitHub repositories.
We can also, in terms of citations, our OpenScI has a citations database. They manage our universe, has some citation statistics too, which I've I've noticed lately as well as Mel, also points out. And I think this has a lot to do with this, DOI, I guess, citation framework, which admittedly I clearly don't know a whole lot about, but I should because lately we have been publishing, you know, a few a few new R packages and I would love to be able to, you know, stand up some sort of scholarly
framework around them as well and and, you know, see if they're getting cited or used by others in interesting ways. So, and the last thing that you mentioned, Eric, was was telemetry and, it seems like it's opt in for the Duckplier package, which is great. I think that's the way that it should be. And and one thing that I I wonder and I haven't researched yet, but I was curious as to if Python, you know, has anything like this in terms of just the language itself or the new Python packages that are published and kind of what the standard practice is around telemetry. It seems a little
counter to the spirit of open source, but I certainly understand how it could be tremendously beneficial. I yeah. And and like I said, it's a touchy subject. And within the R community itself, I wanna say it was either Jim Hester or someone else was was, thinking about how they might build that into a framework like dev tools. And it, yeah, it was not taken very well, and they put the brakes on that from what I understand. But I I think still, if you give a mechanism
to or at least be transparent as possible about how you're gonna use that telemetry and, more importantly, ensure that no one's privacy is compromised. I hate to say it, but there is a lot of people out there that are consuming these packages, these tools, even when I think about the general Linux community as well. A lot of times, these developers feel like they're in a vacuum a little bit. They they have their core group that is, you know, very, you know, communicative with them. But a lot of the regular users out there are using it using it. Maybe something goes wrong. They may just got tired of it and move on to something else and not report back to the to the project.
So I I see both sides of it, but you have to do it responsibly. So I like I said, I'm gonna watch how Doug Plyer handles this and seeing what kind of, you know, information they are getting from this. And if it does what it they are advertising it to do to help inform their future development, but hopefully in a respectful way. I I think, yeah, I would like to see how other languages are approaching this because you just as much as I would like everybody to immediately go file an issue if something goes wrong, if they know where the repository is for that particular package,
A lot of times they're not doing that. It can be hard as a developer to figure that out. But, hey, maybe in 2026 we'll see we'll see better ways to approach it. I have no idea. And rounding out our highlights today. Mike and I have also been very big, consumers, if you will, of the tidyverse suite of packages, especially dplyr,
to do much of our data munging transformations. And, yes, every single script I write with dplyr often has one or more mutate calls. Some of them are quite simple. Some may be just recoding something with case when. Sometimes I'll do some basic math with it. But then there may be times you do a lot of complicated logic with it. Many times I would throw that in a function, not to build it from scratch, then feed it in the mutate. Maybe it's becoming part of my per, you know, iteration pipelines.
But there are some there is a newer, at least newer to me, package that is giving mutate a whole lot more than when it comes advertised with. And this package is called mutagen, authored by Gustavo Velasquez and this is version o dot five that we're talking about here. But this is again one of those cases where our wiki shows me something new that I had no idea existed. And right off the tin,
Gustavo says that the goal of mutagen is to provide extensions to the dplyr mutate function. And, apparently, this has been inspired by other statistical computing frameworks such as Stata because right on the page of the site or the the package down, site for the package, there is a nice table that shows the handful of different functions that mutagen gives you all prefixed by gen underscore, what it would be in r base r to do something like that from scratch,
and then what from the Stata language that inspired it. I won't read them all one by one here, but some of these I've definitely used my own take on doing it, like calculating the column percentage for for a dataset. There is now a gen underscore cal percent function inspired by the egen pc function in Stata, but there's much more than just that. We got
functions like row median, row miss, row n t h, all sorts of these that may not even existed in Stata, but are are part of this mutagen pipeline. So again I'm gonna have to take a look at this and see how much this might alleviate some of my custom code, but very intriguing to see once again the community come through with building on top of the amazing dplyr
package and this I think could be useful in many different ways. So, yeah, new to me, Mike. What did you think about mutagen? I'm certainly very intrigued by it. It seems like a lot of this as you mentioned, Eric, may be inspired by Stata. 14 out of the 17 functions that are currently exported from mutagen are row wise operations as well, which I know is kind of antithetical to how a dplyr works in general, although, obviously, it does have a row wise, operator
at this point in time, which is is fantastic. But these seem to be potential shortcuts to a lot of summary statistic operations, from what I can tell, you know, perhaps sort of akin to what we might get from functions in Janitor or Skimmer. And I can, I think, speak for all of us when I say that sometimes calculating counts or percentage of null value or or things like that can be a little more complicated in r than probably it should be and the code can be a little more verb verbose,
than you might think and there's all sorts of different funky things that we can do to, you know, sum up Boolean values and and things like that that might be, a little counterintuitive to new users, whereas, you know, some of these functions may be a little little easier to deal with, a little more obvious? So definitely intrigued by by this new package and excited to see where it continues to go and perhaps, you know, give us some of these, you know, janitor like statistics that help us do our exploratory data data analysis a lot quicker than we might have had to in the past.
Yes. And this does look like a new package, always relatively new. I'm going through the the commit history and, yeah, this was well, actually, no, not new. It was started back in 2019, but it definitely got a lot more development in in the more recent years. So interesting how this works on those that open source. You have the idea, then maybe you have to step away for a bit for various reasons, and then get back to development. That's like the story of my shiny state development journey in a nutshell until I finally pulled the pulled the trigger on that this year. But, yeah, I'll be watching
this space quite closely. And it would be interesting, obviously, in the world of LLMs and the like, when you ask it to, you know, maybe update your dplyr code that derive these additional variables, how much of verbose code will it give you as opposed to using, like, mutagen? That might be a fun fun thing to try out depending on which model you look at. But there's a lot of things to try out. Right? And especially this year in 2025, and rweekly has been your source for inspiration, hopefully, to look at what the community is building, try out new workflows and data science, and learn from some of the best in our community.
Where can you find that? Of course. That's at rweekly.org. That's where everything is, both the latest issue right on the front page as well as the archive of all the other issues. And, yeah, we definitely weren't able to talk about all the issues, so you're definitely welcome to check those out as you get some downtime this holiday season. And I'm happy to say, Mike, that in between our last episode, we got some listener feedback. It's it's great to see this. So this came from our contact form from Willie Ray,
and they write, hey, guys. Thanks for the our branding shout out. Oh, yes. I do remember shouting that out. I heard at the end that you've got some PowerPoint angst. Yeah. We do. Something I was thinking about. Quarto can render reports to a variety of slideshow formats including PowerPoint. I haven't tested this. It's not in our project's roadmap. But I think brand YAML should be able to style those documents too without too terribly much hacking. The website template and our branding uses coral to render out a brand YAMLified
website. Seems like you should be able to do the same with a slideshow. Thanks again for the kind words. Yes. Well, yeah, that may be something we should definitely try. I mean, I'm trying my best to avoid PowerPoint these days, but maybe our branding and and PowerPoint could work well together with Corto. What do you think about that? We've got a brand dot YAML file that we use internally at Catchbook, and I Willie, the next time that we need to generate some PowerPoint slides, I will absolutely give it a shot and let you know. But great idea.
Yeah. Excellent. So that's exactly what you can do to get in contact with us is just use that contact page directly in the episode show notes. We'd love to hear from you. It's always great to hear from our audience. And if you wanna find a a different way to contact us, we got a few additional ways. And I do promise in 2026, I'll make this even easier for people, but there are ways to either send us a fun little boost in your new podcast app of choice, or you can get in touch with us on social media. I am, blue sky with at our podcast @bsky.social.
And if you watch my feed as of today, I'm testing out some funny API stuff. So, there'd be dragons perhaps of that. But you can also find me on Mastodon or I'm at our podcast at podcastindex.social. And I am on LinkedIn. You can search my name and you'll find me there. Mike, where can a list of who's got a hold of you? You can find me on blue sky at mike dash thomas dot b s k y dot social. Or if you search Catch Brook Analytics on LinkedIn, k e t c h b r o o k, you can see what I'm up to.
Awesome stuff. And once again, the year is wrapping up. I do admit, Mike, the timing of next week is a little dicey. Right? We got the holidays right there. So Yes. I'm guessing we'll probably be taking the week off. We'll see if we get another one out there before the end of the year. But if you don't hear from us, it probably means that 2026 will be the next time you hear from us, you know, how things go when you got kids that are coming out of school in a couple days and you gotta frantically figure out what the heck you're gonna keep them busy with. That's just me personally, but I'm sure all of you out there have similar things you're you're wrestling with. But
nonetheless, we appreciate you listening to us on episode 216 of our movie highlights. And, yes, we will be back with another episode fairly soon. Thanks a lot, everybody.
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...