Skip to content
PodSubs
ShowsPeopleGuestsJobsNewsEvents
More
BlogPodCred
Menu
ShowsPeopleGuestsJobsNewsEventsBlogPodCredNetworksSign in
Join nowSign in
  • Shows
  • People
  • Jobs
  • News
  • More
    • Guests
    • Events
    • Blog
    • PodCred
    • Networks
    Join nowSign in

R Weekly Highlights

R Weekly Highlights artwork

Issue 2026-W41 Highlights

Oct 9, 202652 minAudio
ShareXLinkedInFacebookWhatsAppEmail

A roundtrip between formatted tables and spreadsheets is now very much possible, how {shinyreact} represents a new path for user interface development in Shiny, and a candid take on ownership of code and the products we build from it (including very awesome art). Episode Links This week's curator: Sam Parmar - @parmsam@fosstodon.org (Mastodon) & @parmsam_ (X/Twitter) From spreadsheet to gt and back again Introducing shinyreact: React UI backed by a Shiny server Aperiodic tilings with the de Bruijn method Entire issue available at rweekly.org/2026-W41 Supplement Resources {forgts} - Formatted spreadsheets to gts https://luisdva.github.io/forgts {gtxlsx} - Write gt and HTML tables into {openxlsx2} workbooks https://janmarvin.github.io/gtxlsx Bold indicates negative? https://www.youtube.com/watch?v=NJz0779Seto {shinyreact} - Shiny UI infrastructure for React-based component rendering https://posit-dev.github.io/shinyreact/r/index.html Agent skills vignette for {shinyreact} https://posit-dev.github.io/shinyreact/r/articles/agent-skills.html R + AI conference https://rconsortium.github.io/RplusAI_website/ 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 Smoke & Marbles - Castlevania: Symphony of the Night - Emunator, ZackParrish, Lucas Guimaraes - https://ocremix.org/remix/OCR04714

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 forty four of the Our Weekly Highlights Podcast. This is the weekly ish podcast where we talk about the excellent highlights and other great resources and information that are shared on this week's issue of R Weekly, which you can find at rweekly.org. My name is Eric Nance and I'm delighted that you joined us from wherever you are around the world and thank goodness it's not quite the same as last week when I was trying to hold the fort down, you know, with probably

mixed success as Flanders might say. No, sirree, Bob. Well, I thought I did okay with it. But anyway, we're gonna make sure that's right this time because my awesome cohost is back. Mike Thomas. Mike, how are you doing today? Doing great, Eric. You always do a great job holding it down, but I do miss the weeks when I don't join you. And it's, I think a lot more fun for both of us, if I can say that when we're together. I agree. And I think the listeners do too, I would imagine. But, we got a lot to talk about today, and I've already warned you. I got a couple of maybe, spicy ish takes that I want your perspective

on, which is always our, some of the most fun conversations we have. But let's get right into it, shall we? So we got another fantastic issue. This is week 41 of the year and it's been curated by Sam Palmer, another good friend of mine from the life sciences sector and, one of our more recent joins in our curator team. And as always, he had tremendous help from our fellow R Weekly team members and contributors like you around the world with your poll requests and offer suggestions.

And, you know, throughout the show, we've been covering the evolving landscape of what it's like to be a data scientist using R or other languages in the recent years with certain, you know, endeavors that have become more mainstream. But there is one constant that even as I was polishing up another kind of commit to my major shiny app that I'm working on, a reality that as much as I would like to escape from it, I can't,

but I don't think many of you can either. And that is one way or another, you're probably going to deal with people that may may like to use your fancy shiny app or whatever framework you have of using that fancy DT table or Reactable table to look at your data, but in the end, they'll probably ask you, can I download it as a spreadsheet? Yep, they're out there, we know you're out there, we hear you, and there can be times where, you know, you can populate that spreadsheet many different ways

and it doesn't have to be through shiny, right? I mean, of course, we know some packages in the community that we'll talk about shortly, but what if you had what looked like a really great, might say table of results, that you just want as quick of a way to get to a spreadsheet or vice versa. Maybe you want, you know, you already have that magical spreadsheet that either you created or someone else gave you and you want to make a nice table out of it.

If what I said sound very far fetched, trust me, I thought this too, but now there are tools available that you can do this round trip of sorts of getting these really nicely formatted spreadsheets from a table in R to a spreadsheet and perhaps even back again. So this first highlight is documenting just that and it's authored by Luis Verde Erogachia. I'm sorry buddy if I pronounce your last name badly.

He is a biologist and also a very active member of community, especially in the training sector where he's been heavily involved in R Open Sci and the software carpentries and an avid conference talk presenter, so I had a good chance to see him again at POSICONF this year. And his blog post is titled round tripping formatted spreadsheets with two packages that we'll talk about 4GTS and GTXOSX.

Rolls right off the tongue doesn't it? But, in the intro here Luis opens with saying that he has actually authored and talked about the first of these packages I just mentioned for GTS or GTs you might say. By the way, I'm gonna show my wrestling fandom here. When I see GTS, I think I'll go to sleep by Centimeters Punk, but that's another story for another day. In any event, for GTs, I guess that might be the way to pronounce it, although I don't know if it's true or not. I think that's the safe choice. Safe choice? Okay. Well,

you know how to find me if I'm wrong on this and some of you are very active in finding me when I mispronounce things, in any event. And so Luis has authored Four GTs, which is a way to say once you have that spreadsheet in your hands, it's got that nice pretty formatting, right, all you have to do with 4GTs is feed in the path to that spreadsheet, and you've got yourself a function, literally called 4GTs, to run on that spreadsheet

file path, and you will get a very nicely formatted GT object that you could put in any web report, Shiny app, or whatever have you, and you'd be hard pressed to see if it has much of a difference of that magical spreadsheet. It is a work of art, and credit to Luis for putting that together. So that's been in the works for a while, but now what about that other direction going from the GT table back to a spreadsheet, much like I was alluding to in the beginning.

Well, that's where a new package has entered the fray, and that is called GTXOSX authored by, hopefully, get this right, Jan Marvin Garbuses. Hopefully. But it is another well documented package that does exactly what I just said. You give it a GT object that you created, however means you have, whatever styling you have, and you simply now have a way to

basically piggyback off of another, you know, fundamental package in the world of Excel spreadsheet processing. Open XOS X2, and you can basically initialize a workbook with that package and then add a tab for this table from GT using the wb add GT function, feed in that workbook object, feed in the the gt table, and you got yourself a spreadsheet that will look

very, very close to what you built in that gt table in the first place. So yes, now you've got the ability to round trip from either direction, thanks to these two packages. And, you know, Luis closes this post by saying, Well, why should we care? Well, again, like much I said earlier, this is a fundamental reality that a lot of the communications we do are done in spreadsheet form,

and sometimes they become inputs that we have to process or they are outputs that we have to generate. Thankfully, in my current line of work, I've been more outputting to them. I don't have to consume them as much, and that is very much appreciative of things like APIs that give me structured ways of ingesting data. But some of you out there don't have that luxury and you're getting these spreadsheets from the wild. Well, it's nice that if you want to take what's in there and preserve its formatting,

present it in a more cohesive report, you've got a way to do that. And likewise, if it is your input, you've got a way to deal with that direction too. So it is a reality that, again, thanks to the wonderful open source nature of R, we get the ability to have our cake and eat it too with spreadsheets. It's pretty wild that we now have this round trip with, you know, four GTs where we can go from an Excel workbook to a, you know, GT table object that has, you know, similar visual styling in the, GT table object is what was in the input

Excel workbook. And then vice versa with this GTXLSX package. Very interesting. That goes the opposite way and takes that, you know, formatted probably, yeah, colors, bold, italics, who knows, display table and writes it out to an Excel workbook via OpenXLSX two and preserves all of those nice formatting and custom styling. It's pretty incredible. I would love to take a peek under the hood. I haven't had a chance to do so

yet at exactly how this gets accomplished and sort of that translation step between, I imagine, HTML when you're going from GT to Excel and then maybe XML when you're going the opposite direction from Excel to a GT table object. I don't know. We'll have to dig in under the hood. I apologize if I am way off there. But, you know, to people that have been, you know, fortunate enough to avoid spreadsheets, this might not have ever affected you, but people do some very interesting things, let's say, with Excel formatting.

In particular, I've seen people use italics or bold font to essentially denote information that really should be like another column in your workbook. I remember hearing about some study that was taking place where there was measurements of weights for... I can't remember if it was people or animals, but daily weight measurements. And they would bold. I think people were not supposed to have eaten breakfast yet or something that but it occasionally they did and they would just bold the data value when someone had eaten breakfast before taking the weight measurement. There was no like data dictionary to let people know that. I I don't think it was just, you know, that that is the way that we're going to tag that. We're not gonna have another column that is, you know, a boolean.

Yes, no. Has this person eaten eaten breakfast yet? But, know, again, people do interesting things with formatting in Excel that don't necessarily lend themselves to the the data science things that we need to do for analysis purposes. So, you know, packages like this actually help us accomplish that in a programmatic way, which is fantastic. I... You know, the ecosystem of Excel related R packages are really useful. I have to imagine that, you know, these are some of the packages that get downloaded

the most. I mean, it's open XLSX and and read Excel. Must have just millions upon millions of downloads. So, you know, I use them all the time. We're obviously ingesting data quite often that's in Excel format to do some sort of analysis and going the opposite way, especially like you, Eric, probably when we're developing shiny apps that the users want that button to export to CSV or Excel. And the open XLSX sort of suite of packages

are pretty incredible for allowing you to customize just about every possible thing you could ever wanna customize in an Excel workbook from our bold formatting, styling, the whole nine yards. So this is, you know, a really, I think, welcome addition to that ecosystem. I'm excited to to check these out and kind of dig into how they work underneath the hood. Yeah. I did a quick scan of the dependencies for both of these, and, honestly, they both... Well, drawing upon that existing, you know, ecosystem of packages that are dealing with Excel formats because they make it so easy

to opt in and extend them. So yeah, OpenXLSX2, as we mentioned, TidyXLS, another, ReadXLS, another. There's an abundance of riches in this space, and again, I may have mentioned this a week or two ago, none of these depend on Java, thank goodness. And because it is based on that XML open ish format that, you know, that's another kind of, you know, mini rant. I could have Microsoft thinks about that format versus the rest of the world, but I digress. It is a huge step in the right direction and both R and other open source languages

across the board, not even just in data science, but just in web development, can take advantage of that format and do some really, really slick things with. And Luis is an authority in this space, just to your example about using these formats as kind of like data ish kind of coding or traits. He gave an excellent talk last year at POSICONF, which I'll link to his talk was titled bold indicates a negative because it was just that scientists using formatting

to do their own data, you know, data recording of sorts. And he has written packages to deal with that too. And I hope I never have to deal with that in my nine late stages of my career here. But for all you out there, look that up because that is an entertaining talk to watch. Excel is not a database. Thank you. Somebody had to say it. Somebody. Subliminal messages out there for anybody listening. Well, the AI bots will probably get it too when they transcribe all this. But, yes, thank you, sir, and we hope all of you understand that too.

Well, at the previous intro on that previous segment, Mike, I did bring up one of our favorite frameworks, of course, is the shiny framework for building our web applications in our day jobs and I, again, I feel so right at home building these and I definitely appreciate the full process of it all. And, you know, up to this point, you know, one of the main, you know, attractive features of Shiny, of course, was that you didn't have to be a full fledged web developer

to build that attractive looking UI with the power of R at the back end and mix and match things as you see fit, and I stand by that. Now I do acknowledge though that there can be times where you want to go outside the box of some of the more popular UI functions that come either built into Shiny or the more recent BSLib package from POSIT that has really made my interfaces look just a thousand times better.

But there may be times where maybe you yourself have experience of other web frameworks and you just want that additional way to kind of have the power of Shiny with R on the back end, but you get to bring your own UI. And there's been built in support for this in the past with HTML templates and whatnot, but what we learned about at POSICONF this past few weeks ago is another step in that direction,

but with one of the more popular web frameworks in web development, and that is the announcement post that we'll have in our second highlight here, which is the Shiny React package. This is advertised as a React user interface backed by the power of a Shiny R server process. This is authored by Barish Slurkey for this post and the package itself. And this is where for both R and for Python, there are two packages for each,

you will, in essence, be able to have your backend functionality in R like you would of any Shiny app, right? But then the UI now becomes, thanks to this package, literally one function call. In this case, it's in the example he has here in the post, pagereact with nothing supplied to it. Now, of course, there's more to meet CI in just calling this function in and of itself,

but this function is in essence calling what is a compiled TypeScript file in JavaScript with the extension tsx, and when you look at this, you will see, unless you are very proficient with JavaScript already in HTML, it ain't going to look very similar to Shiny. It is its own language. React is an opinionated framework on this and this is where

we're in a new world, I guess, in terms of where this package fits in, where now, as long as you can build that UI, Shiny React is going to use the fact that each input ID still has or each input, I should say, has a unique ID and your server side, you know, functions that you're doing in R with typical shiny are not going to use the typical, like, plot output kind of constructs for, say, a plot visualization.

It's going to be now you're going to output JSON instead that the UI from React is going to ingest in. So that becomes a function called reactiveoutput. So not these very input or, you know, UI type specific output functions. It is now a more general function for reactive output that gives you the JSON back.

Now, as you're hearing this, and as I first heard about this, because I heard rumblings about this even before the conference, I admit I was a little conflicted. But this is where we're in a new world, and if you're one of those developers that doesn't really care that much about how you get to that fancy user interface, well you do have a helper now that doesn't necessarily have to be a full fledged, you know, you know, contract or whatever,

your mileage may vary of course, you now can leverage, of course, the assistance of an agent that has been trained on perhaps thousands and thousands and thousands of React powered apps to help you build that UI and giving it, you know, what it needs to connect that with your server side logic. And the package itself does come bundled with skills to help with this more, direct, you know, creation of the UI,

but this is a shift I wasn't sure I was quite ready for. I, for whatever reason, maybe I'm stubborn, I don't know, I still kind of like having the full stack in one language. Now, of course, I am... I'm kind of being a little facetious in a sense because I know very well that Shiny itself is the abstraction in R to compile the JavaScript, you know, I know that, but it just feels still very R like when I build these with a BSWeb front end or maybe another another package.

I can see where Shiny Rack might be helpful for me in the future when I have a very esoteric UI that doesn't fit my typical paradigm of a nice polished BSWeb, you know, type of dashboard, or like what I was doing before a BS4 dash or the classical shiny dashboard. I can definitely see where I'm just like, I just want to get this out the door, get the UI done and call it a day. But there's still a little bit of conflicting

feelings I have about this, but the example at the end of the post does show where some real value of this can come into play when you tap into the React ecosystem. And they had a summer intern on the Shiny team named Samuel that did a lot of interesting Shiny application development for bioinformatics, another very popular field, especially in my neck of the woods. And one example that's shown in this post is this proteomics live,

UI, where it's actually leveraging graphical processing unit or GPU acceleration to crunch through extremely dense, like millions of data points, spatial views of these, genomic type of structures, and it is very responsive. Like, and this is something that React kind of comes with that, Samuel was able to link to our processing for other processing of the data itself

by using React to handle the UI rendering of this very dynamic visualization. So there is still more future work to be done here. This is the initial rollout of it. Barrett notes that they want to make it easier for authors to embed these React components in existing apps instead of just starting from scratch. And one I'll definitely be paying attention to is helping wrap Shiny React in your own R package of your application. Golem

says hello. Like, that could be an interesting take too. Again, innovative work, yet I still feel conflicted about this because I just love the craftsmanship of building these, and I feel like that's kind of going away with something like this. Well, Mike, that's my hot take number one. What's your take on Shiny React? No. I couldn't agree more with, like, just having fallen in love years ago with writing our shiny code and the craftsmanship around building

out, you know, shiny apps and stitching together modules and only passing back and forth what you need to pass back and forth and then falling in love with the goal and approach to doing that and having done that for so long, it's I'm gonna sound like a boomer. I I enjoy that and change is somewhat hard. But I think that there are absolutely use cases where I could see myself even as a quote unquote boomer. In this case, for maybe a new small app project or something specific,

you know, maybe something small that had a fairly intensive visualization layer component to it where I knew there might be some concurrency as well, that I'd be up against where it would make sort of more... Much more sense to, you know, create... Leverage Shiny React and give people a much better user experience than just going pure Shiny. But, you know, it seems somewhat scary at first. I really enjoyed Barrett's presentation on this at PositConf a couple of weeks ago. He really helped me start to buy into it. Because like you, I'd heard a little bit about it before PositConf as well. And I was like, no way. And now I am starting to potentially

get close to the straw to drink the Kool Aid here. But we will see. It's a little less scary than I initially had thought. There's really two sort of core React hooks into your Shiny app. This this use Shiny input function, takes an ID and an initial value. Kind of works like React's use state function, but updates the the input ID on the Shiny server side. Then there's the useShiny output value that takes an ID, which listens to this reactive output

on the server and re renders components whenever the reactive underlying data changes. So it kind of leaves your shiny server purely in charge of reactive calculation and sort of data only logic. So... And again, I think the truth of the matter is these large language models nowadays, they are great at writing React and JavaScript code, probably much better than writing Shiny code. So if you are someone that leans heavily on

AI assistance when you are developing your Shiny apps. I think this could be a benefit as well, especially with the skills that ship alongside it. And just great examples this blog post. I think it's really well laid out with some of the example code in that example app that you mentioned that was developed. Yet, I guess the use cases here that I'm most interested in are moving processing client side wherever possible between WebR nowadays and, you know, Shiny React

for, you know, mostly the visualization layer or, you know, moving processing out to, a separate micro micro service and API, to try to create fast, quick, great user experiences for our end users wherever possible. And I think this is probably another tool in our tool belt for doing that. And we'll have to see if you and I, Eric, at some point, maybe in the next year or so, we'll have to come back to this and see if we've thrown Shiny React, into our arsenal. You know? Yeah. I think there will be

some cases where this is gonna save me a boatload of time. I'll give a a fun example that I did many years ago, and I can definitely see where I hit my limits on it in a sense, but I was asked by a very important leader many years ago when there was going to be like a team kind of recognition event with hundreds of attendees to try and make a way for, in his case, with a spreadsheet of names

along with key leaders that were going to be positioned at each of these tables of like five or six chairs to try and assign them more effectively and give him a way to kind of tweak it afterwards. So, yes, at that time, mister enthusiasts of shiny here said, oh, Bill, does shiny have to do it? And it actually kind of worked. I mean, I got some sortable JavaScript kind of drag and drop of names into these different boxes that represented the tables. It was not a work of art. It was just enough to get the job done.

But I would fully acknowledge that if this person asked me in 2026 with something like Shiny React, I could probably have a very native looking React UI that makes it look like he's actually putting people in seats with a name, you know, container or whatever, and it'll be done in maybe an afternoon, if at most. So that is far different than some other cases where I think I got everything I need from what the excellent work that Carson Sievert and others have done on the Shiny Team with BSlib to

give me that more traditional ETL or data review and analytical processing reporting pipeline, I don't think I need React for that. But I know that in today's day and age, everybody's expecting a very polished user interface for just about everything now, and if I have a new project I'm going to take on, I'll at least have another choice at my disposal. And I think it is important that Barrett is acknowledging that

at least with this package, they're trying to give you everything you need that, you know, if you are going to use an agent to help you out with it, which I know for me I'd have to because I don't have time to learn React in and out on my own right now, that you got some skills in the package, much like I was singing the praises of the team at ThinkR putting skills with a Golem package to make effective Golem apps. I think this is another trend that we're going to see, you know,

in the coming future here is that packages that are toeing the line between what you know very well in R and maybe some other frameworks or some other extensions of sorts to give you the best shot at getting what you need with the help of these LLMs. I still love the craftsmanship of it all, but I got to be a pragmatist in certain cases too. So I think you articulated that well more than I have, and I think you've been in probably a lot more situations where you've got to make the call pretty quickly in what direction you're going because you can't be late on deadlines. You got to get this stuff done and meet the needs of your customers at the same time. I agree. And just, Eric, I don't wanna take us on too much of a tangent, but I have a question. I'm wondering if you know the answer to. Mhmm. Because we're starting to see it more often

where our packages will ship with skills. Yes. Right? Shiny React being one of those. Yep. And does that mean that those skills are somehow available when you run install dot packages, or does that just mean that they're in the GitHub repository available for you to sort of pull from or or copy and paste or point your agent to? That's a great question. I know the way that Goem handled it is that they had function that you could run to grab the skills from the repo and then put it in wherever your agent or harness of choice's

location is for your skills, whether it's in that project or in your user directory. I know know they stored them in the GitHub repo, probably in the ints folder somewhere, but they had a function wrapper to say, okay, you've installed this package, now use this function. And I think it could do both ways. I think you could grab it from the package itself that you installed, or you could say, give me the most up to date version on the GitHub repo. I think that's how Golem did it. But yeah, I haven't seen like a clear way that's been kind of agreed upon for other packages to do this.

No, I was just curious. I don't see any functions in the Shiny React sort of reference guide that do that at least on sort of my initial look. But when, you know, this isn't the first time that we've talked about our packages shipping with skills. I was curious exactly what that means in practice when you would go to use those. Yeah. I I know in the case of Shiny React, it looks like they have them in the Inst folder and they got a couple ones for building and converting existing apps. So yeah, that's, I think this is going to be an evolving,

you know, evolving paradigm of how package authors make it so that those that want to use these can opt into it pretty easily. But yeah, it's new world out there. It's a very new world. Oh, using the skills. Here, I found it. Oh, I found it too. It's a vignette. You're right. BTW. So they farm it out to BTW. Okay. I see.

There's a key theme of what we just talked about that's going to be in direct relation to this last highlight here, even though it is a far different use case than what we just mentioned. Definitely the theme of what are we owning, so to speak, and what are we holding on to as we develop whatever we're developing. Well, this this last post in our highlights today is a very comprehensive journey of what it's like to kind of wrestle with this issue head on

for what was a quick win, so to speak, by ending up going, you know, deeper, deeper than that. And I'm happy to say that I think it's the second time in three weeks here that our last highlight is authored by Danielle Navarro, who we had a great discussion about her post on the pitfalls of sorting with dplyr and the n tile function, I should say. But now she's going back to what I've admired her work of many for many years now

and her way of creating generative art with art itself. And her post is titled Aperiodic Tilings with the Debruzian Method. Now we're going get into all that means here shortly, but this all stemmed from that aforementioned post that I mentioned that she wrote about the n tile, you know, pitfalls with her, recent use case. And in her blog post, she often likes to have these kind of like visual separators between the different sections of content, and you can see this throughout many of her blog posts.

And one technique that she had heard about that she wanted to kind of take into practice is the idea of these interstitial typographics, kind of like geometric inspired, and she found a python library that does just that called Tilings by Simarqua, I believe, which applies this aforementioned Debrujan

method for generating these tilings, and we'll get to what that means in a little bit, and she used it. She was able to get the little separators she liked, but she actually decided to make an R wrapper of it. But because she was pressed for time, she used an agent to help and it technically got the job done. I mean, she got her little stylings out of it, but this is again acknowledging that this is where she did not write the code herself.

This is, an abstraction that came from the agent directly, and this is a big departure from when she usually produces her art in either of these, you know, blog posts or shared on social media, where she is doing the full stack of the creative process of not only thinking the idea of what art to generate, but then building the code to actually do it with great detail and then owning that content, that product of it, the piece of art, even in digital form.

But this was different. This was a different feeling. She basically farmed that out and it didn't really feel like her own at this point. It was this abstraction that Claude decided to give her, and it wasn't bad per se in her opinion, it was just some base R with some ggplot too, but it didn't really follow the same style as she's done for her custom functions and her programs to build this generative art. And she really liked this style, like this is... You'll see in the blog post, and also I'll make sure to include a graphic if you're using the modern podcast app with chapter images, you'll see an example of the image here.

They're really cool. In fact, I wanna use these as backgrounds and maybe some future posts or wallpaper, but she wanted to have a crack at what would it be like if she had more time and build this all herself. Well, it was quite the journey. There is a lot going on when creating this style of art. There is no way we can do it justice to cover it all here, but I'll hit kind of the highlights of what's happening here and her principled approach to build this in the our way that she knows best and that she authors herself.

So this whole technique of this, tiling is dealing with these rhombus geometric shapes, but following certain constraints so that there is no like overlap, and I guess technically speaking, it's these families of parallel lines and that when you have, you know, intersection of these different series going together, you define a rhombus whose edges are orthogonal

to the intersecting lines, in essence giving you this kind of mosaic, you know, geometric pattern that you can kind of see in some repeating fashion in some of these examples. So this feels like an R package itself that she's making here because there's a lot going on here, and it's a layered approach to take for building these into the graphic device, starting with a function to build this rhombus shape

based on key parameters for the x and y coordinates, different angles, and offsets that are all defined by these parameters so that in the end you can get, superimposed on a ggpod2 canvas, these rhombus shapes on a grid with a point in the middle showing where these lines are intersecting. So that's just step one, then you got to build in what are these

other possible grid lines, not just one set of intersections, but a whole bunch of them. And that's where she's got another function, build families. That's kind of actually what the groups of these intersections are called. And with that, you'll start to see that you can have multiple lines contributing to these intersections with an offset along the way to preserve this kind of principle visualization. And then now you've got to add yet another function

to build this whole collection of grid lines with these families involved and then you'll get now starting to get the makings as you traverse the post here of these repeated kind of intersections here and it even looks like some of those like visual tests you might have to have your eyes tested, it's a pretty unique pattern here. And then when you start to introduce the different points in this and where you're going to place the rhombuses,

where these intersections are, you start to see the fruits of this labor where you start to get these, like, parallelogram like shapes where these intersections are, but there's still some empty space inside, And that's where you got to find some clever tricks to find where the neighbors are of these shapes and start to identify who is kind of closest to each other and then find a way to place what would be another rhombus like shape,

but in the right locations to fill these gaps, and then in the end you get a visualization where you don't see the grids anymore, you don't see the lines, You see just these shapes complete with some nice coloring that you can do to choose the palettes. It is amazing the approach that she took to build this. And man alive I don't know how she had the time to do this this is just I'm scrolling through the code here you'll want to look at this if you have any

if you want to follow-up on the technique she did here it's a lot of tidyverse dplyr, tidyr shaping with some clever looping and ggplot2 magic to make all this work with some sarcastic processes in between. So that again was a huge undertaking to say, well, I wasn't quite satisfied with what I got from the agent, but I want to compare it to what I would build, you know, on my own.

And again, everybody's got their own opinion. Some people may have been quite happy with that original abstraction. If it gets the job done, so be it. I know I take those shortcuts sometimes, but this was a different angle in that the product of this code is something creative. It is in essence her art, right? So she felt like that full stack of, well, if I know the code that built the art, I feel more ownership in how the art was actually made,

not too dissimilar, at least in my opinion, to a painter that's actually doing the painting, whether digitally or through the, you know, the old school paintbrush method, you're along the ride, you're driving that creation. So I think the perspective is important here. I think this is again, even though it's all about art here, not so much about a data analysis, I think there's some interesting kind of insights throughout this post that had me thinking about what it's like to

hold on to this craftsmanship, which sometimes I feel is my creative endeavor. I feel pretty creative when I build these apps and they do some really slick things, and I myself can trace back to what I did to make that happen. Of course, I'm using packages to make it happen, but I'm like a chef of sorts. I'm blending these ingredients together into a recipe and I get a nice app as a product. So this was quite fascinating. Again, the code is immensely

powerful here. A lot of insights if you're new to generative art with R, there's a lot to learn from and the techniques that she's put out here. It's all well commented and yeah, if you just like these shapes, go steal the code from the post and make your fancy, tilings and put that in your next wallpaper background. Yeah. Eric, this is just a fantastic blog post, and I feel like Danielle is always at least blogging about really interesting

sort of things on the fringes of, you know, what we can do with R or programming even at a higher level and and kind of thinking about it from a a perspective that I don't often have but very very much appreciate. So, you know, not only are the the visuals beautiful here and sort of the mathematics that underpin it to decide, you know, how these rhombuses, each one of these individual rhombuses or rhombi should be shaped using this De Bruin method.

And then not only that, how they will kind of intersect with one another. And then at the end, it's sort of like how you're going to color all of them and which ones you're going to color you know, which color. And that to me is is incredible because it comes out looking beautiful. Like there's there's some sort of, I don't know, symmetry is the right word to it. There's some symmetry, I guess, there. But it's obviously not completely random, but at the same point in time, it's mathematical and quantitative underneath to some extent, obviously, with a little bit of randomness

mixed in, I have to imagine. So I think you did a great job sort of laying out the technical details as best as we can in a podcast on how Danielle went about doing this. The code speaks for itself. Not only is the code interesting, but something that's really interesting to me is the comments that Danielle puts surrounding all of the the code, that's been written. And it's very, you know, well explained sort of what each segment is doing. Again, Danielle sort of points out at the beginning of this blog post that Claude took the first approach, but but Danielle did a a full rewrite of what Claude provided, and that included

Danielle's own comments, around every single code block here, kind of helping herself understand what she was doing and maybe also helping, you know, future herself to come back to this code and and us particularly as the audience of this blog post. So, to be able to walk through this code piece by piece in a way that it was much more digestible for me to understand the recipe of steps that was going on here as opposed to just sort of seeing the raw code itself. So I I can't recommend highly enough, you know, reading the blog posts and also as you do so, taking the time to take a look at the comments that surround sort of each piece of code. But the, you know, the the epilogue and sort of the higher level message here in the blog post is is what spoke to me and I think can probably speak to a lot of people out here. I almost wanna read it word for word because I'm having a hard time summarizing it.

I'll pull, like, a few excerpts out of here. She mentions that, you know, what she's done is is not much more than a port of the the Python library that she initially mentioned at the the start of the post. And it it does, you know, not much more than reimplement that base r version of the code that Claude wrote originally and worked. But, you know, sort of the the fundamental difference of what the final outcome here in this blog post is that this version of the code that she has written, the output that it produced is is Danielle's.

She wrote it. She has autonomy over it or I don't even want to use the word agency but you know, I think that's that might be one of the the synonyms that we could use here to sort of convey how she feels and how every image sort of in this post comes from Danielle's code and not someone else's. That matters because in Danielle's opinion, sort of art is much more about the process than the end result. And, her her post concludes with, you know, if you break that link between sort of the story and the the mechanisms

and sort of that journey to creating the art, then you don't really have art at all anymore and she says, all you have is a pretty picture and I couldn't agree more with that and I think it speaks sort of to a higher level about how we do do not interact on a daily basis with these these LLMs that have become part of our our work to some extent. And there are some interesting parallels when we think about code that you understand, whether it's you built or even someone else built, but you fully

get what it's doing. I think there's still a place for this perspective here and it's not quite the same analogy, but what my, teammate Will Landau and I have been trying to put out there with this quote unquote trusted mini agent kind of workflow with agents, in that we've done the hard work of building these reusable components. We want to make sure that if an agent is going to help us that it knows what to use instead of building it on their own.

So I know not every case is going to have the luxury of us building off the shelf packages or other things that these agents can call. But I do think it's important, especially depending on your use case, that you fully understand what is being used here no matter if it's in this creative aspect like art or if you're building what are supposed to be validated outputs based on the results of these, it's not just like because Claude wrote it that you can take shortcuts on that ownership,

right? So I think it is still important to have this perspective. I acknowledge that there are going be some cases where I'm like, yeah, I kind of need to know some of it, but not all of it. It's for a very minor use case, but for the bigger stuff, I still need to feel comfortable with this. One geeky thing I thought about, imagine if you can make like an animation of these patterns and they kind of like kind of move around or whatnot. I would

have fun trying that out. But the good news is with, like you said, Danielle's really well commented code, I'd imagine if I had some downtime, I could probably stitch something like that to her. She gave me such a great start that was on a solid foundation. So I think this is, it's not even just a work of art at the end, as you said, the process to get to that art is just as fascinating as the art itself. This is really interesting stuff here. And there's a lot of interesting stuff across the board with the rest of the issue of our weekly.

And again, we have so much additional content that Sam has curated here, from, you know, updates on our open size efforts, new packages, new analytical pipelines, even some API stuff for football fans out there. There's some really interesting things here along with some other, drawing or some point with plotting, but we invite you to check out the issue it's always at roku.org and also we invite you to help with the project too.

We are always looking for new curators to join us and you are welcome to join the team all the result or all the instructions are available at rwk.org and you can also contribute what you found in the community maybe you wrote a great piece of art you want to share with us like danielle did We are just a poll request away. Find the link in the upper right corner, you'll be taken to the GitHub template. As you got yourself a GitHub account, you can send that poll request and yes, it is on my list to make that even easier to send it at a time yet, but I will eventually,

but, also we love for you to take the time to get in touch with us and we are on the various social medias out there. Also, we have a contact page in the episode show notes that you can simply click on and send us a quick note and I'll get that in my inbox, but I'm also on these social medias out there. I am, blue sky or I'm at rpodcast@bsky.social. I'm also on mastodon or I'm at rpodcastpodcastindex.social, and I'm on LinkedIn. Search my name, you will find me there.

Mike, where can enlisteners find you? You can find me on blue sky at mike dash thomas dot b s k y dot social or you can find me on LinkedIn. If you search Catch Brook Analytics, K E T C H B R O O K. You can see what I'm up to lately and one of the things that I will be up to next month that I would encourage people to potentially check out is the R plus AI Conference. It's being hosted by the R Consortium. I believe it's November tenth and eleventh. It's virtual. Quite affordable.

All of the different prices I think are under $100 and if you are an academic, I think you can get a discount and I also have some discount referral codes available. If you're interested in attending, just shoot me a message. Awesome. Yeah. We'll put a link to joining that in the show notes. And as always, yeah, Mike's not hard to find as he just said. So happy to happy to see that. And it was like a terrific conference last year. You had an awesome presentation there, and, yeah, I'm hoping for hoping hoping for more of the same there.

And with that, we're gonna close-up, episode 244 of our weekly highlights. We thank you so much for joining us. And a little bit of programming note, it is very likely we will not be on next week because yours truly has their kids on vacation from school, but we will be back hopefully in a couple weeks. But, again, thank you so much for listening, and we'll speak to you again soon.

Open the transcript file

Hosts and Guests

Hosts

  • Eric Nantz Host Feed-stated
  • Mike Thomas Host Feed-stated

Credit the people on this episode

Be the first to rate this episode

More episodes

All episodes
  1. Issue 2026-W47 Highlights

    Nov 20, 202648 minAudio

    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...

    Credit the people on this episode

  2. Issue 2026-W46 Highlights

    Nov 13, 202633 minAudio

    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...

    Credit the people on this episode

  3. Issue 2026-W45 Highlights

    Nov 6, 202644 minAudio

    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...

    Credit the people on this episode

  4. Issue 2026-W44 Highlights

    Oct 30, 202631 minAudio

    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...

    Credit the people on this episode

  5. Issue 2026-W43 Highlights

    Oct 23, 202659 minAudio

    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...

    Credit the people on this episode