Skip to content

Export a cooldown filter - #5

Merged
dgkf merged 6 commits into
mainfrom
cooldown
Aug 20, 2026
Merged

dgkf merged 6 commits into
mainfrom
cooldown

Conversation

@llrs-roche

@llrs-roche llrs-roche commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

This is just a small filter that is not about validation of packages but I wanted to test how it worked.

It adds a cooldown filter that prevents installing recently release packages (<= 2 weeks by default).

Currently it works in the sense that the packages are filtered but the data.frame returned is still the full one..
One needs to check the "Include" column to check which packages were filtered

@llrs-roche
llrs-roche requested a review from dgkf June 4, 2026 14:20
@llrs-roche llrs-roche moved this to In Progress in Package Development Jun 18, 2026

@dgkf dgkf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally getting around to reviewing this and it looks great!

You also discovered a bug with the environment passing! I had to add a force() in order to avoid the need to explicitly pass your evaluation environment, so this should avoid that pitfall for future filters.

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.

@dgkf
dgkf merged commit b5b2601 into main Aug 20, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Package Development Aug 20, 2026
@dgkf
dgkf deleted the cooldown branch August 20, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants