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

Use chkDots() in more methods #168

Open
Bisaloo opened this issue Jul 23, 2024 · 0 comments
Open

Use chkDots() in more methods #168

Bisaloo opened this issue Jul 23, 2024 · 0 comments

Comments

@Bisaloo
Copy link

Bisaloo commented Jul 23, 2024

It is common that some arguments will be silently ignored due to the presence of ... in the argument list.

R Core have release the chkDots() utility almost 10 years ago so it can be warn when arguments are passed to ... but ignored: r-devel/r-svn@97d6701

But a number of base methods are not using this utility when they could. The goal of this issue is to list all the potential candidates before potentially opening a bugzilla issue / submitting a patch:

  • toString.default()
  • as.data.frame.data.frame()
  • as.data.frame.vector()
  • as.data.frame.matrix()
  • cut.default()
  • mean.default()
  • ...

Other mechanism to guard against the presence of ...:

  • split.default()
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