Skip to content

feat: dots in to_lst() and to_df() #200

@jonthegeek

Description

@jonthegeek

Summary

As a package developer, in order to ensure object stability, I would like to receive an error if I pass unused dots with most arguments.

Details

Moreso than with other functions in stbl, it is conceivable that users will pass ... erroneously to to_lst(). as.list() silently discards dots in most (all?) cases. Implement explicit to_lst() methods for classes that will definitely discard ..., and use rlang::check_dots_empty0(..., call = call) to ensure that the dots are empty. We need to explicitly include x_arg and call args in these methods, so those don't get passed as dots. The default method can still pass dots, in case a method is implemented outside base that will actually use the dots.

The same issue exists for to_df().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions