Skip to content

Move Statistics.jl to weak dependency extension #482

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ChrisRackauckas-Claude
Copy link

Summary

  • Moves Statistics.jl from a regular dependency to a weak dependency (extension)
  • Reduces the base dependency footprint while maintaining full functionality

Changes

  • Moved Statistics from [deps] to [weakdeps] in Project.toml
  • Created RecursiveArrayToolsStatisticsExt extension module
  • Moved Statistics-dependent functions (mean, median, std, var, cov, cor) to the extension
  • Added Statistics to test dependencies to ensure tests continue to work

Testing

  • Package compiles successfully
  • Statistics functions work when Statistics.jl is loaded
  • All existing functionality is preserved through the extension mechanism

This is part of a broader effort to reduce dependencies across the SciML stack by converting optional functionality to weak dependencies.

🤖 Generated with Claude Code

- Moved Statistics from deps to weakdeps in Project.toml
- Created RecursiveArrayToolsStatisticsExt extension module
- Moved Statistics-dependent functions to extension
- Added Statistics to test dependencies

This reduces the base dependency footprint while maintaining full functionality when Statistics is loaded.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
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.

2 participants