4 ms·
This has the obvious measurement bias of only looking at packages, and not a wider sample of user code. But I think it’s likely that most users, and most code,
by ellisv 4y ago
This has the obvious measurement bias of only looking at packages, and not a wider sample of user code.
But I think it’s likely that most users, and most code, are entirely unaware of lazy evaluation.
- fn-mote 4y agoOne exception: "modern" tidyverse users. Astract example: a function that takes in a "bare" column name and later "embraces" it in a data frame context. Concrete example: this function filters for c being nonzero, and uses lazy evaluation: function (df,c) { df |> filter({{c}} != 0) } That's an acceptable level of complexity for "not really programmer" R users to get something done. Whether or not they actually understand what they are doing under the hood? That's a different issue.