The newest linter on the R block gains a bold new feature in version 0.6.0, and a new package documentation framework altdown enters the world. Episode Links This week's curator: Jon Calder - @jonmcalder@fosstodon.org (Mastodon) & @jonmcalder (X/Twitter) Jarl 0.6.0: A fast R linter A new take on documentation sites for R packages Entire issue available at rweekly.org/2026-W36 Supplement Resources Ark: An R kernel https://github.com/posit-dev/ark Arf: Alternative R Frontend https://github.com/eitsupi/arf 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 Super Buck II - Super Mario Brothers 2 - Estradasphere - https://ocremix.org/remix/OCR00577
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 with episode two forty of the ART Weekly Highlights podcast. That's one of those nice little round numbers that tells me we just keep this train going. But if you are new to the show, this is the usually weekly podcast where we talk about the terrific highlights and sometimes additional resources that have been shared in this week's issue of R Weekly, which you can find at rweekly.org. My name is Eric Nance. Yes, we have entered September. It is feeling quite frantic for yours truly. I got a lot of things I got to line up before I head out to
Pozikoff in a week and a half. I can't believe how close it is, but I'm really excited to be there, but I'm not the only one that's going there because my awesome co host will be there too during his share of getting things ready for that. Mike Thomas. Mike, how are you doing today? Definitely excited that we're ten days away. A little bit nervous that my twenty minute presentation for posit comp slides are feeling a little bit more like forty minute in length. We've got some trimming to do, but hopefully that's easier than going the other direction.
I'm sure a lot of other folks are in that same boat. Yes. I have always started in that direction because I'm always one of those like kind of OCD kind of people and, oh, if I don't talk about that, I'm missing something. Then I realize, oh, geez. Yeah. I've doubled the length of it. So it is admittedly easier to start from too much than it is from too much. Like, what else do I talk about? I don't have that problem because I have a five minute talk, so I cannot have much material in mind, but I am in that same stage. I'm pruning out one or two things. But again,
Mike and I know this from the coaching. Huge credit to the speaker coaching articulation for all their great efforts. It has been a blast to work with them. Yep. Definitely. All right. Well, speaking of a blast, it's a blast to talk about our weekly, of course. And in this week's issue that we have on the docket has been curated by John Calder, another one of our longtime contributors and curators. And as always, we have tremendous help from our fellow ROQT members and contributors like all of you around the world with your poll requests and other wonderful suggestions.
And we're going to lead off with a utility that's had a lot of high praise in the R community since its inception, I want to say since last year, but we've covered it definitely a couple times here, but its development keeps moving fast and it's going to help you write quality code just as fast, if not faster. We are talking about JARL, which stands for Just Another R Linter. Well, that's being a bit facetious. It is not just another Linter, it is a supercharged
Linter for your R development needs, and it is fantastic, and it now has a version 0.6.0 release which we're going to talk about here. And if you're not familiar with Jarl, it has been authored by Etienne Batcher, I don't know how to say it, but I'll try my best. He is a research software engineer at the University College of London for the paleoverse, and headlining this version o dot six update is a very interesting methodology
that if you've developed R code for, whether it's a long time or just a short time, and Mike, you will keep me sane on this, you've probably had the situation where you're writing code, maybe you're doing a tidyverse like pipeline, things are going kind of wonky around the data processing or maybe in that shiny reactive, and you just kind of want to see intermediate steps. Well, what's one way to see intermediate steps? You make some objects.
You sometimes accumulate those objects, especially in a debugging session, and maybe you don't really need those objects in. Mike, please tell me I'm not the only one that's done that. You're definitely not the only one, Eric, to create some object in the middle of a function and then never actually use it. Yes, and that is the, again, the headlining feature of this update is the new object unused, rule that Jarl is bringing to the table here.
And what this does, as it kind of says, it does some clever, techniques to determine, not just in one R script, but throughout the entire collection of your R code for that given folder, whether there are these objects that are just kind of dangling there and they don't really have a purpose and they're just not being used anywhere. This is not an easy thing to implement. There is a lot under the hood that needs to happen in terms of because your code could be quite complex. It's most likely
not a single file, especially if it's a complicated analysis, complicated Shiny app, all across the board, a package itself for that matter. And that is where Etting actually was able to stand on the shoulders of another effort that got a lot of high praise last year, that is the ARC kernel, authored by Posit, because they had already pioneered in ARC the idea of a semantic code analysis to do this kind of object detection usage across the board.
And it's also kind of challenging because on top of this semantic analysis, you can have situations where objects are being, in essence, manipulated or created through other means than just you saying like, I'll just expose myself for my naming conventions here, temp underscore d e f assigned to, you know, whatever your pipeline is. Maybe you're being really slick and using some metaprogramming with r lang or some clever use of glue to create these objects.
So this semantic searching of your code has to account for more than one way to create an object, but he thinks that it's looking pretty robust. However, he is inviting you in the community, give this feature a try, this rule set a try, and report back if it's actually not detecting what it should detect or if it's giving you false positives because it could go the other way too sometimes. So that's what caught my eye as the headlining feature, but of course there is a lot of other enhancements
such as an additional 16 new rules that are trying to bring JARL in a bit more of a feature parity in the checks as existing frameworks like the linter package already have. So that's always great to see that has some compatibility in terms of what the user can expect to see, along with some great enhancements if you're like me and you love living in the command line, some good enhancements for you there too, such as autocomplete of role names when you hit tab.
That's great for if you're using a modernist shell like zsh or phish or things like that, you'll get that autocomplete in jarl just like you would for a lot of the commands in those shells. You can also access the underpinnings of the documentation for rules by actually using JARL rule and then type in the name of the rule, and it will spit out in the CLI the documentation associated with that. So that's another nice quality of life improvement there,
as well as saying, hey, in my project, don't touch that folder. Maybe you call it scratch or dev or prototyping or whatever else. Just leave that be. I know it stinks. Just leave it be. And then last but not least, you have wonderful new ways of installing JARL to meet where you are in your analytical environment, I. E. It is now part of PyPI. So you could install Jarl via say the UV framework. You can also install Jarl with homebrew if you're on a Mac or even Linux and you want to just get Jarl that way, now they got a recipe for homebrew as well. So yeah, Jarl, the train keeps moving in terms of its development,
it is blazing fast, it is written almost entirely in Rust, and it shows with its performance. So great to see a team, you know, continually update Jarl, and I will keep using that in my package and Shiny app needs. Me as well. And it's really interesting to see what I feel like are, you know, a lot of fairly related to each other coming out, but really improving, you know, a lot of quality of life of our developers out there. And there's a couple common threads I feel like between a lot of these projects that are coming out.
Jarl is written in Rust underneath the hood. And, you know, one of my other favorite, new R terminals sort of for working in, you know, dev container environments that I typically work in in Versus Code is called ARF, a r f. Alright. Which again is in our console that's written in Rust and gives you some of that auto complete and things like that. And I have to imagine that one of the other things that a lot of these projects sit on in terms of linting and formatting
might be advances in like the tree setter, tree sitter world. I was taking a look at that arc package that Jarl leans on as mentioned in in the blog post and I was perusing a little bit and saw that tree sitter was sort of a a dependency of that arc project and I believe tree sitter has now sort of given developers a way to sort of ubiquitously and maybe across languages, map out
the structure of functions. Am I nailing? Am I way off there or No. Sort of on the right track? You are definitely on the right track. You're these almost mental models. Yeah. Yeah. And the best part is is that now because of what a POSIT team had done with using TreeSitter and Arc, they pushed the TreeSitter kind of R specific updates to GitHub, and GitHub directly is now using that same functionality. When you go in a repo and you search for a function name, it's using TreeSitter under the hood to do that. It is really great to see the R language catching up in this space with the other ones too.
Super cool. Super cool. But, yeah, I mean, if you're not taking advantage of some of these different types of projects like like Jarl or Air, I think you're missing out. You know, you might not think that you need them, but as soon as you start introducing these projects on top of your programming environment, I think you'll be shocked at, one, how much more efficient you can potentially be, how much more quickly you'll be able to catch issues and inefficiencies and bugs in your code,
as well as, you know, with that that air project, which is, I know it's just a formatting, project, but I know that Jarl and Air can actually complement each other pretty well and, you know, that project just allows you to not have to worry so much about indentation or the formatting of your code. You just save it and everything just ends up beautiful. So, I I'm really encouraged by sort of all the developments and advancements in this space because they they do allow us to one, I think, you know, write code quicker.
Also, be able to babysit better any code that your LLM of choice may be spitting out at you which may not be pre linted or preformatted and may have some of the issues that something like a jarl would pick up on. So, really excited about, you know, the continued advancements in in Jarl and some of these similar projects and I guess thanks to Ralston TreeSetter maybe. Yeah. And you took words out of my mouth about, you know, the code you might get from a from an LLM where I was having to enhance, a shiny module recently,
and then it would write the script like on its own. But then when I went to the script and I just maybe like put one little comment in and I hit save, well, guess what? Air and Jarl took over and reformatted a lot of it because that poor little, Claude agent just did not know about the right way to do it. So it would be nice if they can use these utilities too, which I'm sure if you're clever of your skills and whatnot, you could probably wire that in pretty easily. So that's a to do list for me.
For sure. Now we have that in our our Claude MD after authoring any code, run the AIR CLI tool. There you go. Okay. Mike, you're always the one teaching me on this podcast. I will put that in my skill or clauder. Couldn't be further from the truth. Oh, you wish, you wish. And rounding out our highlights today, we're gonna we were talking about, you know, how one of the enhancements in JARA was getting better access to certain documentation on the rules.
Well, across the board when you're writing a package or an application or anything in between is critically important, and also the way you can surface that documentation, that plays a big role too. If you've been authoring an R package or consuming R packages, you have very likely seen that on top of the entry of a package on the CRAN network and just at the GitHub repository or GitHub like repository, there's often a website associated with that package,
most likely authored with the Packagedown framework for, turning, say, vignettes and package manual pages into friendly HTML, very nice styling. It just works all markdown based. It's very easy to adopt into your package. It's not the only game in town, and there can be cases where somebody just wants a little bit more, especially taking in some of the newer features and additional ways we can author
package documentation and vignettes and whatnot. And that's what our last highlight is going to talk about because it is a new framework for authoring package documentation called Alt Down. And Alt Down has been authored by, and I'm definitely not going to get this right, Bjarke Khatub Christensen. Boy, send the messages to Mike. No, I'm kidding. He is a research assistant at the section of biostatistics,
University of Copenhagen, which probably explains why I wasn't able to pronounce that very well. I digress. As he alludes to in this announcement post, yes, Packagedown is, like I mentioned, kind of the standard that most package authors use for their package documentation, but it's lacking what he would say a lot of critical support if you want to leverage another, you know, framework to actually author your documentation, I. E. The Quartal ecosystem. It does have some support for it, but not everything in Quartal
can be, massaged into something that Packagedown can consume. Ironically enough, there was an alternative framework that was proposed by the very author of JARL, actually, called Alt Doc as, like I said, an alternative to packaged down with quartal in mind. But even that, there was a little bit of a difference to what J'Arc wanted, where he was looking for
something that didn't look exactly like quartal but still retained the aesthetics of packaged down but with some of the niceties of quarto, like those fancy callout boxes that you can put in your page. Those are really cool, by the way. And hence he decided to take on the matters in his own hands and built alt down on top of that. So alt down is, to be technical here, literally built upon alt doc. So it is very much not a complete refactoring
per se, it is literally just standing on top of Alt Doc, but with some of these additional styling kind of enhancements, which again, it's always great to see projects that can extend existing projects. So, again, one of the motivations for him making this so that he could have those fancy callout boxes in a site that looks like it's created with Packagedown. So that is really cool to see. And also another feature that he's built in,
it's called reftip, which if you put your code over, say, the name of a function, it'll do one of those nice kind of hover pop ups that you see on a lot modern web pages, and it'll actually show that kind of information about that function in that brief little hover. And he was inspired by this, by, in the Julia ecosystem, a framework called Documenter Codeblocks. Jl, which again, gave that preview kind of hover
over links to those functions so you can kind of see that on the spot. If your eyes are catching this, when you visit our weekly, we do a similar thing when you hover over links there. So it's a great, great feature that's been baked in here. He does acknowledge there are some limitations to that hover kind of tip feature, such as functions that are generic, such as print, may not quite know what page to surface from the manual page because a print could be used on almost any type of object and do slightly different things.
Some issues with, R6 in particular aren't quite getting rendered correctly, but it's early, but it does sound like for almost everything else, alt doc, alt, yeah, alt down, I should say, is working quite well. So yeah, if you're looking for something that looks like package down, gives you a few more bells and whistles, I think All Down is definitely worth a look. And I may have to consider this, for my next R Package documentation. Eric, what did we do before R Packages had
HTML documentation sites? You know what I did? I went remember. I went to CRAN and I did the PDF. For sure. We all did the PDF. That's that's what we had to do. Yes. And every once in a while, I'll be, you know, trying to look up a function in a particular package and be looking in my, you know, search results and not be able to find that package down site or go to the GitHub and not see an accompanying package down site or not even see a GitHub at all. Just the cran mirror.
And that is always a sort of a sad state of affairs and have to jump back into the PDF and it it feels like 2000 and something all over again. Early in the Wild Wild West. So, we have come a long way in these accompanying sites that we get through package down and now Alt Down serve I think huge purposes in terms of helping anyone that's that's working with those packages be able to croc, you know, what to code and where to look and how to troubleshoot and essentially how to use, you know, the different functions and utilities that that package offers. And admittedly,
you know, I think when package down originally came out, it was a huge step forward. I think still continues to be so. But there are, admittedly, some of these shortcomings, particularly with how much of so many of our workflows have now migrated to Quarto, how well packaged down in Quarto interplay. And I think one of the big strengths here with AltDown, and AltDoc underneath it is that really tight integration
with Quarto and getting you know, all of the different features that you get out of Quarto, you can you can use in, these AltDown sites as opposed to Packagedown. You know, one here that the author calls out is is callout blocks. I'm a huge fan of callout blocks, in my quarto, you know, sites as as well as, you know, even quarto, like, types documents that that all render callout blocks are fantastic in my opinion for really pointing out and communicating to the audience. Hey. Look here. This is something important that you should take a look at.
And I I don't believe that those are, you know, available in the package down ecosystem, unfortunately. So that's where this alt doc and alt down project can come in and be able to pull in some of those niceties that we get out of Quarto that we can't necessarily use in package down yet. So, as you mentioned, you know, Eric, one additional really nice project underpinning here is that ref tip, project. I think that that is incredibly, incredibly,
helpful. I think that's something that we've probably always wanted from our package sites for a while besides sort of like a live, you know, web assembly terminal to be able to practice with these functions. That's just, you know, something that I'll bring up on this podcast every four to six months. Just try to speak it into existence. It's it's your contractual obligation, Mike. And, my friend Kurt says the same thing. It's true. It's true. Thank you. Fantastic. So, yeah, I think this preview on hover can be awesome. I'd love to see that, you know, kind of these concepts are borrowed
cross language and taking a look at sort of what's what's best in the Julia ecosystem right now that we don't have on the the R side. And I think that that that ref tip can be fantastic. Well, you know, one of the things that I love with, like, Quarto blog or Quarto websites, that are HTML hosted is if you're hovering over, like, a citation or a link or or something like that, you will get that little pop up hover, and it's it's so nice. So to be able to have something similar for sort of the help documentation for a function in your package, think would be huge
in terms of, you know, your vignettes and and other things like that instead of just a hyperlink to the reference page on the website and the the function documentation there. So really exciting stuff. I don't know a time frame if and when I will make the jump from package down to alt down, but it is great to have choice, and this is something I'm certainly gonna keep my eye on as it continues to progress. Yeah. I I can see it probably depends on the type of package,
but there are gonna be cases where I want that that experience of the first time user to have as clean of an experience with some additional bells and whistles that Quarto offers. And there are certain internal packages I made that are kind of low level stuff like auth things to Microsoft stuff versus the ones that are more analytical and definitely have a lot more going on under the hood, but a lot more to explain. So I think it won't be for everybody, but I can definitely see if you're already invested in Quarto for a lot of your other documentation
needs, could definitely see Alt Down as a wonderful way to spruce up your documentation. And yeah, choice is great here in this case because it sure beats those auto generated PDFs. No offense, of course. No offense. Offense. Disclaimer. A diplomat today, but I'm also a diplomatic to say that, hey, I don't have to make bones about this. The rest of the issue is fantastic as well. We don't have time to get into all the additional resources here, but John has always got a lot
of great additional content to take a look at. And as I mentioned, when you go to rmkin. We got our own version of ref tip happening there with the previews over going over those links and of course, the new packages updated, the new packages in existence, a whole bunch more. But also, yeah, we want to, you know, let you be a part of this project too, which will be spoiler alert, a big theme of my talk at POSICONF, but there are lots of ways that you can get involved. I'm going tell you all first, although you've heard the story many times by now.
We are built by the community for the community, or maybe you can switch it around either way. It's a Friday. The point being is that we rely on the content that the community creates. Therefore, if you've found that great resource or you yourself has built that great blog post or resource, we are a poll request away at rog.org. Find the Octocad in the upper right corner, and you'll be taken directly to the poll request template with our upcoming issue draft and our curator of the next issue. We'll be glad to merge that in.
We also, want to hear from you directly as well in terms of what you think about this Humble Bowl podcast, this project as a whole, and certainly we'll have probably one more episode before we head out to positconf, but we always love meeting the listeners in person. That'll be fun. But if you want to get in touch with us before that, are available on the social medias out there. I am on blue sky where I'm at rpodcast@bsky.social also on mastodon @rpodcastatpodcastindex.social
and I'm on linkedin search my name you'll find me there I'm going to be quite busy this month and one of the things I already did, albeit I had a few, tech catastrophes, which I may talk about another time, but nonetheless, Mike, where can the listeners find you? Yeah, Eric, you've, been busy lately between, what was it? The the deposit what's the name of the the show that they run? Data Science Lab. The Data Science Labs last week and I I saw you on LinkedIn. You've got more coming up. So, that's super exciting.
You can find me on blue sky at mike thomas. Bsky. Social or you can find me on LinkedIn if you search Catch Brookie Analytics, K E T C H B R O O K, you can see what I'm up to. Always a fun read to see you posting all your exploits out there and fun learning adventures and everything in between. But yeah, we hope you take this chance to learn more about, you know, what's going on in our weekly project and these great highlights we shared with you. It's every single week, everybody. No paywalls in front of this. We hope you get value out of this and we love hearing from you about your stories.
With that, we'll close-up shop for episode two forty of our weekly highlights. We thank you so much for joining us and we'll be back with another edition of our weekly highlights next week.
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...