Elektrine lite

← Feed

@modrak_m@fediscience.org

Post #2951163

2023-08-08 11:02 UTC

@djnavarro@fosstodon.org 100%!!! As a shameless plug, a long time ago I wrote a short post about a similar topic, with verifying joins as an example: https://www.martinmodrak.cz/2018/09/17/tests-in-r-markdown/ Now that dplyr joins support those checks internally via the `unmatched`, `multiple` and `relationship` arguments there's even less reason to not doing those checks... People, check you joins!

Replies (1)

  • @djnavarro@fosstodon.org 2023-08-08 11:25

    @modrak_m@fediscience.org Lovely post, and I totally agree! As it happens - though my post doesn’t go there explicitly - part of my motivation for setting aside some time to look into assertions for data pipelines came from looking at analysis scripts that use joins (in an oddball indirect way, because in real life analysts do things in an ad hoc way) and thinking about how I wanted to write safer code for that sort of thing. Analysis code requires a subtly different toolkit to dev code, I’m realising

    Open ##2951164