š¦ MaĆ«lle's R blog on MaĆ«lle Salmon's personal website
@masalmon.eu.post@rss-parrot.net
I'm an automated parrot! I relay a website's RSS feed to the Fediverse. Every time a new post appears in the feed, I toot about it. Follow me to get all new posts in your Mastodon timeline!
Brought to you by the RSS Parrot.
---
Recent content in Maƫlle's R blog on Maƫlle Salmon's personal website
Your feed and you don't want it here? Just
e-mail the birb.
Cover and modify, some tips for R package development
https://masalmon.eu/2024/09/24/cover-modify-r-packages/
Published: September 24, 2024 00:00
Iāve recently been dealing with legacy code refactoring both in theory and in practice: while Iām continuing some work on the igraph R package, Iāve started reading Working Effectively with Legacy Code by Michael Feathers, that had been in my to-read pileā¦
Create and use a custom roxygen2 tag
https://masalmon.eu/2024/09/03/roxygen2-custom-tag/
Published: September 3, 2024 00:00
You might know that itās possible to extend roxygen2 to do all sorts of cool things including but not limited to:
documenting your internal functions for developers only (thatās devtag by my cynkra colleague Antoine Fabri),
recording your followingā¦
Does my test really validate a bug fix? Check it with git cherry-pick
https://masalmon.eu/2024/08/29/cherrypick-test/
Published: August 29, 2024 00:00
Earlier this year I wrote a post about git worktree that allows you to load different versions of an R package at once on your computer. To keep with the ājuggle between versions of a codebase with Git plant-related commandsā theme, let me show you how Iā¦
Get your codebase lint-free forever with lintr
https://masalmon.eu/2024/08/28/lintr-3-steps/
Published: August 28, 2024 00:00
Writing good code is hard. Some aspects get easier with experience ā although I observe that I consistently forget some things. š Other aspects can be tackled through code review ā although your reviewerās time will be better spent on design questions thanā¦
Extracting names of functions defined in a script with treesitter
https://masalmon.eu/2024/07/18/extract-function-names-treesitter/
Published: July 18, 2024 00:00
Coming back from a conference, we might be excited to install and try out the cool things we have heard about. I, going against the stream š, decided to experiment with a tool I have not heard about last week, as I unfortunately missed Davis Vaughanās talkā¦
Extracting all links from my slidedeck
https://masalmon.eu/2024/07/16/extract-links-from-md/
Published: July 16, 2024 00:00
Last week after my useR! talk, someone I had met at the R-Ladies dinner asked me for a list of all the links in my slides. I said Iād prepare it, not because Iām a nice person, but because I knew itād be an use case where the great tinkr package wouldā¦
Hack your way to a good Git history
https://masalmon.eu/2024/06/11/rewrite-git-history/
Published: June 11, 2024 00:00
Iāve now explained on this blog why itās important to have small, informative Git commits1 and how Iāve realized that polishing history can happen in a second phase of work in a branch. However, Iāve more or less glossed over how to craft the history in aā¦
Why you need small, informative Git commits
https://masalmon.eu/2024/06/03/two-phases-git-branches/
Published: June 3, 2024 00:00
āMake small Git commits with informative messagesā is a piece of advice we hear a lot when learning Git. Thatās why we might want to sometimes rewrite history in a branch. In this post, Iād like to underline three main (š) reasons why youāll be happy you,ā¦
What I edit when refactoring a test file
https://masalmon.eu/2024/05/23/refactoring-tests/
Published: May 23, 2024 00:00
Iām currently refactoring test files in a package. Beside some automatic refactoring, I am also manually updating lines of code. Here are some tips (or pet peeves, based on how I look at it / how tired I am š)
Prequel: please read the R packages book
Theā¦
Automate code refactoring with {xmlparsedata} and {brio}
https://masalmon.eu/2024/05/15/refactoring-xml/
Published: May 15, 2024 00:00
Once again a post praising XML. š These are notes from a quite particular use case: what if you want to replace the usage of a function with another one in many scripts, without manual edits and without touching lines that do not contain a call to replace?ā¦