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

Reexport functions from Statistics #735

Merged
merged 2 commits into from
Nov 26, 2021
Merged

Reexport functions from Statistics #735

merged 2 commits into from
Nov 26, 2021

Conversation

nalimilan
Copy link
Member

@nalimilan nalimilan commented Nov 21, 2021

It does not make any sense to avoid exporting functions from Statistics to which we add methods. These are documented in the manual but currently not available without typing using Statistics.
The only method from Statistics which we do not overload is middle, which this commit does not reexport for now.
Also don't reexport stdm and varm as they are currently not mentioned in the StatsBase manual (and should probably be deprecated, see #736).

It would even make sense to also include docstrings from Statistics in the StatsBase manual so that one can get them from a single place.

@nalimilan nalimilan mentioned this pull request Nov 21, 2021
@ararslan
Copy link
Member

I've oftened wondered why we don't just @reexport using Statistics in StatsBase.

@nalimilan
Copy link
Member Author

I was tempted to do that, but as noted at #736 stdm and varm are not clearly documented in StatsBase so I'd rather not export them.

It does not make any sense to avoid exporting functions from Statistics
to which we add methods. These are documented in the manual but currently
not available without typing `using Statistics`.
The only method from Statistics which we do not overload is `middle`, which
this commit does not reexport for now.
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.

None yet

4 participants