common
Solutions for Common Problems in Base R
A base-R utility belt that grows one small function at a time, on no particular schedule
◆Recent moves
- 8mo ago
Full set of relational infix operators added
Rounds out the infix operator set with %ne%, %le%, %ge%, %lt% and %gt%, extending the package past the single %eq% operator it shipped with in 2022. Documentation fixes and video links round out an otherwise small release.
View source ↗ - 2y ago
source.all() fixed to cooperate with logr
Repairs source.all() so it works correctly alongside the logr logging package and attempts to capture warnings in its returned dataset. A patch to the function added one release earlier, and a reminder that this package is maintained in service of its siblings.
View source ↗ - 2y ago
source.all() added for sourcing a directory of scripts
Adds source.all() for running every script in a directory, plus a data type fix in the subscript and superscript helpers. The function needed a follow-up release before it behaved correctly in a logging context.
View source ↗ - 2y ago
changed() fixed for single-value input
Fixes changed() when given only one value, an edge case in the function shipped a month earlier. Standard follow-up to a new addition.
View source ↗ - 2y ago
changed() identifies grouping boundaries
Adds changed() for detecting where a grouping variable shifts value, useful for run-length style work on sorted data. The release notes candidly record that the function's code was omitted from the previous release.
View source ↗ - 3y ago
this.path() dependency removed
Drops the package's dependency on this.path(), keeping the near-zero dependency footprint that makes it safe as a shared base for other packages. No user-facing behaviour change.
View source ↗