Installation
Requirements
- Julia 1.10 or later
- OnlineStatsBase.jl
Installing from Package Registry
Once registered, install OnlineStatsChains.jl using Julia's package manager:
using Pkg
Pkg.add("OnlineStatsChains")
Development Installation
To install the development version:
using Pkg
Pkg.develop(url="https://github.com/femtotrader/OnlineStatsChains.jl")
Or from a local path:
using Pkg
Pkg.develop(path="/path/to/OnlineStatsChains")
Verifying Installation
Test that the package is correctly installed:
using OnlineStatsChains
using OnlineStatsBase
# Create a simple DAG
dag = StatDAG()
add_node!(dag, :test, Mean())
fit!(dag, :test => 1.0)
println("Installation successful! Value: ", value(dag, :test))
Dependencies
OnlineStatsChains.jl depends on:
- OnlineStatsBase.jl - Provides the base OnlineStat types
Optional Dependencies
For documentation:
For testing:
- Test (Julia standard library)
Compatibility
- Julia: 1.10+
- OnlineStatsBase: 1.x
Troubleshooting
Common Issues
Issue: Package not found Solution: Make sure you're using Julia 1.10 or later and have an up-to-date package registry.
using Pkg
Pkg.update()
Pkg.add("OnlineStatsChains")
Issue: Method errors with OnlineStats Solution: Ensure you have compatible versions of OnlineStatsBase.jl installed.
using Pkg
Pkg.status("OnlineStatsBase")
Getting Help
If you encounter issues:
- Check the GitHub Issues
- Read the FAQ
- Ask on Julia Discourse