Publications by Econometrics and Free Software

Announcing rixpress

19.03.2025

As I’ve already discussed in this vignette of my {rix} package, it is very easy to run a {targets} pipeline inside of a Nix environment for increased reproduciblity. The main drawback of {targets} though, is that it is not possible to compute one particular object in one particular environment, and another object in another environment. It is als...

7331 sym R (2229 sym/9 pcs) 4 img

Why we forked nixpkgs

16.02.2025

Here’s why nixpkgs is a GitHub repository that contains tens of thousands of Nix expressions used by the Nix package manager to install software. By default, the nix package manager will pull expressions from NixOS/nixpkgs, but when using {rix} our fork rstats-on-nix/nixpkgs is used instead. Because forks can sometimes be a bit controversial, we ...

8554 sym R (43 sym/1 pcs) 2 img

Using options() to inject a function’s internal variable for reproducible testing

12.02.2025

No image this time Imagine you have a function that does something complicated, and in the middle of its definition it generates a variable. Now suppose that you want to save this variable and then re-use it for tests, what I mean is that you want your function to always reproduce this intermediary variable, regardless of what you give it as inputs...

3229 sym R (1760 sym/3 pcs)

New year, new blog

30.01.2025

Happy new year! The blog has a new look! Well it’s not that different on the surface. But under the hood, it is quite different indeed! My previous setup was: GitHub to host the code, on each push the build process would get started on Netlify and then it would be hosted there. The engine was Hugo. This blog now still uses GitHub to host the code...

2375 sym 2 img

Reproducible data science with Nix, part 12 — Nix as a polyglot build automation tool for data science

27.08.2024

Nix is not only a package manager, but also a build automation tool, and you can use it to build polyglot data science pipelines in a completely reproducible way. For example, suppose that you need to mix Python, R and maybe some others tools for a project (by the way, some believe this will become the norm in the coming years, use your favourite s...

9905 sym R (3573 sym/6 pcs) 4 img

Reproducible data science with Nix, part 10 — contributing to nixpkgs

28.02.2024

I’ve very recently started contributing to the nixpkgs repository of packages, which contains all the packages you can install from the Nix package manager. My contributions are fairly modest: I help fix R packages that need some tweaking to make them successfully build for Nix. Most of these fixes are very simple one-liners. Most users of any fr...

15114 sym R (3054 sym/16 pcs) 12 img

Reproducible data science with Nix, part 9 — rix is looking for testers!

01.02.2024

After 5 months of work, Philipp Baumann and myself are happy to announce that our package, {rix} is getting quite close to being in a state we consider “done” (well, at least, for a first release). We plan on submit it first to rOpenSci for review, and later to CRAN. But in the meantime, if you could test the package, we’d be grateful! We are...

5470 sym R (3436 sym/6 pcs) 4 img

Reproducible data science with Nix, part 8 — nixpkgs, a tale of the magic of free and open source software and a call for charity

18.12.2023

This is part 8 of a series of blog posts about Nix. Check out the other parts here. TLDR: free and open source software is one of the most important common goods with enormous positive externalities: if you want to help funding it, keep reading! I wanted to quickly discuss about nixpkgs, which is the collection of packages that can be installed usi...

6326 sym 4 img

An overview of what’s out there for reproducibility with R

04.10.2023

In this short blog post I’ll be summarizing what I learnt these past years about reproducibility with R. I’ll give some high-level explanations about different tools and then link to different blog posts of mine. I see currently two main approaches with some commonalities, so let’s start with the commonalities. Commonalities These are aspect...

9351 sym 4 img

ZSA Voyager review

28.09.2023

Now for something completely different than our usual programming: today I’m sharing my thoughts on the latest ZSA mechanical keyboard, the Voyager. First things first: this is in no way shape or form sponsored by ZSA. But Erez, if you’d like to send me money you’re more than welcome. Here’s what the keyboard looks like: Your browser does ...

8075 sym 22 img