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

Data names override default R functions #110

Open
MikeLydeamore opened this issue Jul 15, 2022 · 0 comments
Open

Data names override default R functions #110

MikeLydeamore opened this issue Jul 15, 2022 · 0 comments

Comments

@MikeLydeamore
Copy link

There are a few named objects in the package datasets that are overwriting default R objects.

In Smoking: c and pi override the function and constant.
In Vaccine, c overrides the concatenate function.

In both cases, the bracketing means that the function and the dataset are accessible at the same time, but I could imagine an edge case (probably in do.call) that would cause some unexpected behaviour.

Could these be renamed so that if the data is loaded there can't be an accidental mixup?

openjournals/joss-reviews#4206

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