Skip to content

Explore the composability of filters #8

Open

Description

@dgkf

Ex. the "medium risk" filter should be the "low risk" plus additional conditions. How can we support this style of composability.

Activity

  1. llrs-roche commented on Aug 25, 2026

    @llrs-roche
    Contributor

    From #5:

    I'd still love to see composable filters, ie

    cooldown <- package_filter(as.Date(Published) > Sys.Date() - 14)
    good_docs <- package_filter(...)
    established_w_good_docs <- package_filter(cooldown() & good_docs())

    but I think that's a bigger lift than we can manage with this PR.

    I agree this would be a nice idea. I also like the operators for this kind of composition, but we need to think well how are they joint and what is allowed.
    Would be allow to exclude them? ie good_docs() & !high_risk()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions