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

Add .default methods for the int_*() generics #544

Open
hfrick opened this issue Sep 19, 2024 · 0 comments
Open

Add .default methods for the int_*() generics #544

hfrick opened this issue Sep 19, 2024 · 0 comments

Comments

@hfrick
Copy link
Member

hfrick commented Sep 19, 2024

Give the int_*() generics a .default() method with a nicer error message

Code
int_pctl(vfold_cv(mtcars))
Condition
Error in `UseMethod()`:
! no applicable method for 'int_pctl' applied to an object of class "c('vfold_cv', 'rset', 'tbl_df', 'tbl', 'data.frame')"
---
Code
int_t(vfold_cv(mtcars))
Condition
Error in `UseMethod()`:
! no applicable method for 'int_t' applied to an object of class "c('vfold_cv', 'rset', 'tbl_df', 'tbl', 'data.frame')"
---
Code
int_bca(vfold_cv(mtcars))
Condition
Error in `UseMethod()`:
! no applicable method for 'int_bca' applied to an object of class "c('vfold_cv', 'rset', 'tbl_df', 'tbl', 'data.frame')"

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

No branches or pull requests

1 participant