Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic lapply-like interface #97

Merged
merged 4 commits into from
Feb 7, 2024
Merged

Basic lapply-like interface #97

merged 4 commits into from
Feb 7, 2024

Conversation

richfitz
Copy link
Member

@richfitz richfitz commented Feb 5, 2024

Follows fairly trivially from #89 and #39

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (eb16521) 100.00% compared to head (ab24bd5) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #97   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           23        23           
  Lines         1950      1976   +26     
=========================================
+ Hits          1950      1976   +26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@richfitz richfitz marked this pull request as ready for review February 5, 2024 16:42
n <- if (is_data_frame) nrow(data) else length(data)
if (n == 0) {
cli::cli_abort(
"'data' must have at least one {if (is_data_frame) 'row' else 'element'}",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is nice with cli...

@weshinsley weshinsley merged commit 465f417 into main Feb 7, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants